Exemplo n.º 1
0
 /// <summary>
 /// On fail handler executed in all-catch block of clientContext.Execute() command
 /// </summary>
 /// <param name="operation">This operation</param>
 /// <param name="handler">Handler that is assigned to CSOMOperation.OnFail property</param>
 /// <returns>This operation</returns>
 public static CSOMOperation Fail(this CSOMOperation operation, Func <CSOMOperation, Exception, CSOMOperation> handler)
 {
     operation.LogDebug("Fail handler set");
     operation.SetFailHandler(handler);
     //operation.OnFail = handler;
     return(operation);
 }