Exemple #1
0
 public void AddDeleteNodeOperation(ISuperGraphOperation operation)
 {
     if (operation is IBatchOperation && (operation is DeleteTranscludedNodeOperation || operation is DeleteNodeOperation))
     {
         Operations.Enqueue((IBatchOperation)operation);
     }
     else
     {
         throw new NotSupportedException("This type of operation is not supported by the batch operation manager. Only delete operations are supported.");
     }
 }
 public void AddDeleteNodeOperation(ISuperGraphOperation operation)
 {
     if (operation is IBatchOperation && (operation is DeleteTranscludedNodeOperation || operation is DeleteNodeOperation))
     {
         Operations.Enqueue((IBatchOperation)operation);
     }
     else
     {
         throw new NotSupportedException("This type of operation is not supported by the batch operation manager. Only delete operations are supported.");
     }
 }