Example #1
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));
     }
 }