#if !DOTNET35 using System; using System.Threading.Tasks; namespace Nethereum.JsonRpc.Client { public abstract class RequestInterceptor { public virtual async Task InterceptSendRequestAsync( Func> interceptedSendRequestAsync, RpcRequest request, string route = null) { return await interceptedSendRequestAsync(request, route).ConfigureAwait(false); } public virtual async Task InterceptSendRequestAsync( Func interceptedSendRequestAsync, RpcRequest request, string route = null) { await interceptedSendRequestAsync(request, route).ConfigureAwait(false); } public virtual async Task InterceptSendRequestAsync( Func> interceptedSendRequestAsync, string method, string route = null, params object[] paramList) { return await interceptedSendRequestAsync(method, route, paramList).ConfigureAwait(false); } public virtual Task InterceptSendRequestAsync( Func interceptedSendRequestAsync, string method, string route = null, params object[] paramList) { return interceptedSendRequestAsync(method, route, paramList); } } } #endif