Пример #1
0
        public override void ExecuteCmdlet()
        {
            PartnerId = PartnerId ?? string.Empty;

            try
            {
                var response = new PSManagementPartner(AceProvisioningManagementPartnerApiClient.Partner.Get(PartnerId));
                WriteObject(response);
            }
            catch (Exception e)
            {
                LogException(e);
            }
        }
Пример #2
0
 public override void ExecuteCmdlet()
 {
     if (ShouldProcess(string.Format(PartnerResources.UpdateManagementParnterTarget, PartnerId),
                       string.Format(PartnerResources.UpdateManagementParnterAction, PartnerId)))
     {
         try
         {
             var response = new PSManagementPartner(AceProvisioningManagementPartnerApiClient.Partner
                                                    .Update(PartnerId));
             WriteObject(response);
         }
         catch (Exception ex)
         {
             LogException(ex);
         }
     }
 }