コード例 #1
0
 public static SdkBackendPoolsSettings ToSdkBackendPoolsSettings(this PSBackendPoolsSetting psBackendPoolsSetting)
 {
     return(new SdkBackendPoolsSettings(
                enforceCertificateNameCheck: psBackendPoolsSetting.EnforceCertificateNameCheck?.ToString(),
                sendRecvTimeoutSeconds: psBackendPoolsSetting.SendRecvTimeoutInSeconds
                ));
 }
        public override void ExecuteCmdlet()
        {
            var backendPoolsSetting = new PSBackendPoolsSetting
            {
                EnforceCertificateNameCheck = !this.IsParameterBound(c => c.EnforceCertificateNameCheck) ? PSEnabledState.Enabled : EnforceCertificateNameCheck,
                SendRecvTimeoutInSeconds    = !this.IsParameterBound(c => c.SendRecvTimeoutInSeconds) ? 30 : SendRecvTimeoutInSeconds
            };

            WriteObject(backendPoolsSetting);
        }