protected override void OnProcessRecord()
        {
            var operationId = this.RemoveStorageAccountProcess();

            if (!string.IsNullOrEmpty(operationId))
            {
                var ctx = new StorageServiceOperationContext()
                {
                    StorageAccountName = this.StorageAccountName,
                    OperationId = operationId
                };

                WriteObject(ctx, true);
            }
        }
Example #2
0
        protected override void OnProcessRecord()
        {
            var operationId = this.RemoveStorageAccountProcess();

            if (!string.IsNullOrEmpty(operationId))
            {
                var ctx = new StorageServiceOperationContext()
                {
                    StorageAccountName = this.StorageAccountName,
                    OperationId        = operationId
                };

                WriteObject(ctx, true);
            }
        }
Example #3
0
 protected override void ProcessRecord()
 {
     try
     {
         base.ProcessRecord();
         string str = this.RemoveStorageAccountProcess();
         if (!string.IsNullOrEmpty(str))
         {
             StorageServiceOperationContext storageServiceOperationContext = new StorageServiceOperationContext();
             storageServiceOperationContext.StorageAccountName = this.StorageAccountName;
             storageServiceOperationContext.set_OperationId(str);
             StorageServiceOperationContext storageServiceOperationContext1 = storageServiceOperationContext;
             base.WriteObject(storageServiceOperationContext1, true);
         }
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         base.WriteError(new ErrorRecord(exception, string.Empty, ErrorCategory.CloseError, null));
     }
 }