예제 #1
0
 public static SdkDeliveryPolicy ToSdkDeliveryPolicy(this PSDeliveryPolicy psDeliveryPolicy)
 {
     return(new SdkDeliveryPolicy
     {
         Description = psDeliveryPolicy.Description,
         Rules = psDeliveryPolicy.Rules.Select(rule => rule.ToDeliveryRule()).ToList()
     });
 }
예제 #2
0
        public override void ExecuteCmdlet()
        {
            var deliveryPolicy = new PSDeliveryPolicy
            {
                Description = Description,
                Rules       = Rule
            };

            WriteObject(deliveryPolicy);
        }