/// <summary> /// The on request recieved. /// </summary> /// <param name="context"> /// The context. /// </param> /// <exception cref="NotImplementedException"> /// </exception> public void OnRequestRecieved(IRequestInterceptorContext context) { foreach (var interceptor in this._registeredInterceptors) { interceptor.OnRequestRecieved(context); } }
/// <summary> /// The on request complete. /// </summary> /// <param name="context"> /// The context. /// </param> /// <exception cref="NotImplementedException"> /// </exception> public void OnRequestComplete(IRequestInterceptorContext context) { foreach (var interceptor in this._registeredInterceptors) { interceptor.OnRequestComplete(context); } }
public void OnRequestComplete(IRequestInterceptorContext context) { Console.WriteLine("On Request Complete called - Interceptor"); Console.WriteLine($"{context.OperationInvoked} has been invoked and response {context.GetCurrentServerResponse.Body} was generated\n"); }
public void OnRequestRecieved(IRequestInterceptorContext context) { Console.WriteLine("On Request Recieved called - Interceptor"); Console.WriteLine($"{context.OperationInvoked} has been invoked\n"); }