Exemplo n.º 1
0
 /// <summary>
 /// Intercept the provider when an http call to get scope is done
 /// </summary>
 public static void OnHttpGettingScopeResponse(this WebClientOrchestrator orchestrator, Func <HttpGettingScopeResponseArgs, Task> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 2
0
 /// <summary>
 /// Intercept the provider when client is trying to send again an http request message
 /// </summary>
 public static void OnHttpPolicyRetrying(this WebClientOrchestrator orchestrator,
                                         Func <HttpSyncPolicyArgs, Task> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 3
0
 /// <summary>
 /// Intercept the provider when an http is about to be done to get server scope
 /// </summary>
 public static void OnHttpGettingScopeRequest(this WebClientOrchestrator orchestrator, Action <HttpGettingScopeRequestArgs> action)
 => orchestrator.SetInterceptor(action);
 /// <summary>
 /// Intercept the provider when batches have been completely downloaded
 /// </summary>
 public static void OnHttpBatchesDownloadedArgs(this WebClientOrchestrator orchestrator, Func <HttpBatchesDownloadedArgs, Task> action)
 => orchestrator.SetInterceptor(action);
 /// <summary>
 /// Intercept the provider when batches are about to be downloaded
 /// </summary>
 public static void OnHttpBatchesDownloadingArgs(this WebClientOrchestrator orchestrator, Action <HttpBatchesDownloadingArgs> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 6
0
 /// <summary>
 /// Intercept the provider when a batch changes has been downloaded from server side
 /// </summary>
 public static void OnHttpGettingChangesResponse(this WebClientOrchestrator orchestrator, Action <HttpGettingServerChangesResponseArgs> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 7
0
 /// <summary>
 /// Intercept the provider when downloading a batch changes from server side.
 /// </summary>
 public static void OnHttpGettingChangesRequest(this WebClientOrchestrator orchestrator, Func <HttpGettingServerChangesRequestArgs, Task> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 8
0
 /// <summary>
 /// Intercept the provider when batch changes is uploading to server.
 /// </summary>
 public static void OnHttpSendingChangesRequest(this WebClientOrchestrator orchestrator, Action <HttpSendingClientChangesRequestArgs> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 9
0
 /// <summary>
 /// Intercept the provider when an http message response is downloaded from remote side
 /// </summary>
 public static void OnHttpGettingResponse(this WebClientOrchestrator orchestrator,
                                          Action <HttpGettingResponseMessageArgs> action)
 => orchestrator.SetInterceptor(action);
Exemplo n.º 10
0
 /// <summary>
 /// Intercept the provider when an http request message is sent
 /// </summary>
 public static void OnHttpSendingRequest(this WebClientOrchestrator orchestrator,
                                         Func <HttpSendingRequestMessageArgs, Task> action)
 => orchestrator.SetInterceptor(action);