diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-13 23:09:44 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-13 23:09:44 +0200 |
| commit | 678b22afc27e53811f978103b7ea41609ff68606 (patch) | |
| tree | faaabb6468c1b22d770eb753eeac39b34ef65e4f /Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs | |
| parent | 69f27fd4bfc5a46fad019b06c9c8d06159c400b9 (diff) | |
| download | Tango-678b22afc27e53811f978103b7ea41609ff68606.tar.gz Tango-678b22afc27e53811f978103b7ea41609ff68606.zip | |
Implemented and deployed machine service gateway.
Implemented AzureUtils => Gateway.
Diffstat (limited to 'Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs index e8d966158..0917b012d 100644 --- a/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs +++ b/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/ViewModels/EnvironmentRemovalViewVM.cs @@ -39,23 +39,6 @@ namespace Tango.AzureUtils.UI.ViewModels set { _slotName = value; RaisePropertyChangedAuto(); } } - private String _email; - [Required(ErrorMessage = "Active directory email is required.")] - [EmailAddress(ErrorMessage = "Please enter a valid email.")] - public String Email - { - get { return _email; } - set { _email = value; RaisePropertyChangedAuto(); } - } - - private String _password; - [Required(ErrorMessage = "Password is required.")] - public String Password - { - get { return _password; } - set { _password = value; RaisePropertyChangedAuto(); } - } - private RemoveEnvironmentConfiguration _config; public RemoveEnvironmentConfiguration Config { @@ -71,12 +54,6 @@ namespace Tango.AzureUtils.UI.ViewModels Config = new RemoveEnvironmentConfiguration(); } - public override void OnApplicationReady() - { - Email = "roy@twine-s.com"; - Password = "1Creativity"; - } - public override void OnAuthenticated(IAzure azure, List<IWebAppBase> apps) { _machineServiceApp = apps.SingleOrDefault(x => x.Name == "MachineService"); @@ -96,8 +73,8 @@ namespace Tango.AzureUtils.UI.ViewModels IsFree = false; - Config.Email = Email; - Config.Password = Password; + Config.Email = Settings.Email; + Config.Password = Settings.Password; await _environmentManager.RemoveEnvironment(SelectedDeploymentSlot, SlotName, Config); |
