Beispiel #1
0
        protected override AzureComputeActionBase PopulateProperties(AzureComputeActionBase Value)
        {
            var retVal = (AzureActionWithConfigBase)base.PopulateProperties(Value);

            retVal.ConfigurationFilePath     = this.ffpConfigFilePath.Text;
            retVal.ConfigurationFileContents = this.txtConfigText.Text;
            retVal.ConfigurationFileId       = String.IsNullOrEmpty(this.ddlConfigurationFile.SelectedValue) || "X" == this.ddlConfigurationFile.SelectedValue || !string.IsNullOrEmpty(this.txtConfigText.Text)
                ? 0
                : int.Parse(this.ddlConfigurationFile.SelectedValue);
            retVal.ConfigurationFileName = this.txtConfigurationFileName.Text;
            retVal.InstanceName          = this.ddlInstance.SelectedValue;
            return(retVal);
        }
Beispiel #2
0
 protected virtual AzureComputeActionBase PopulateProperties(AzureComputeActionBase Value)
 {
     if (Value.UsesServiceName)
     {
         Value.ServiceName = txtServiceName.Text;
     }
     if (Value.UsesDeploymentName)
     {
         Value.DeploymentName = txtDeploymentName.Text;
     }
     if (Value.UsesSlotName)
     {
         Value.SlotName = txtSlotName.Text;
     }
     if (Value.UsesExtendedProperties)
     {
         Value.ExtendedProperties = txtExtendedProperties.Text;
     }
     if (Value.UsesExtensionConfiguration)
     {
         Value.ExtensionConfiguration = txtExtensionConfiguration.Text;
     }
     if (Value.UsesTreatWarningsAsError)
     {
         Value.TreatWarningsAsError = chkWarningsAsError.Checked;
     }
     if (Value.UsesWaitForCompletion)
     {
         Value.WaitForCompletion = chkWaitForCompletion.Checked;
     }
     if (!string.IsNullOrEmpty(this.txtSubscriptionID.Text))
     {
         Value.ActionCredentials = new AzureAuthentication()
         {
             SubscriptionID = this.txtSubscriptionID.Text, CertificateName = this.txtCertificateName.Text
         }
     }
     ;
     else
     {
         Value.ActionCredentials = null;
     }
     return(Value);
 }
 protected virtual AzureComputeActionBase PopulateProperties(AzureComputeActionBase Value)
 {
     if(Value.UsesServiceName)
         Value.ServiceName = txtServiceName.Text;
     if (Value.UsesDeploymentName)
         Value.DeploymentName = txtDeploymentName.Text;
     if (Value.UsesSlotName)
         Value.SlotName = txtSlotName.Text;
     if (Value.UsesExtendedProperties)
         Value.ExtendedProperties = txtExtendedProperties.Text;
     if (Value.UsesExtensionConfiguration)
         Value.ExtensionConfiguration = txtExtensionConfiguration.Text;
     if (Value.UsesTreatWarningsAsError)
         Value.TreatWarningsAsError = chkWarningsAsError.Checked;
     if (Value.UsesWaitForCompletion)
         Value.WaitForCompletion = chkWaitForCompletion.Checked;
     if (!string.IsNullOrEmpty(this.txtSubscriptionID.Text))
         Value.ActionCredentials = new AzureAuthentication() { SubscriptionID = this.txtSubscriptionID.Text, CertificateName = this.txtCertificateName.Text };
     else
         Value.ActionCredentials = null;
     return Value;
 }
 protected override AzureComputeActionBase PopulateProperties(AzureComputeActionBase Value)
 {
     var retVal = (AzureActionWithConfigBase)base.PopulateProperties(Value);
     retVal.ConfigurationFilePath = this.ffpConfigFilePath.Text;
     retVal.ConfigurationFileContents = this.txtConfigText.Text;
     retVal.ConfigurationFileId = String.IsNullOrEmpty(this.ddlConfigurationFile.SelectedValue) || "X" == this.ddlConfigurationFile.SelectedValue || !string.IsNullOrEmpty(this.txtConfigText.Text)
         ? 0
         : int.Parse(this.ddlConfigurationFile.SelectedValue);
     retVal.ConfigurationFileName = this.txtConfigurationFileName.Text;
     retVal.InstanceName = this.ddlInstance.SelectedValue;
     return retVal;
 }