public HttpServiceCallAsyncCallInterceptor(IRequestContextFactory requestContextFactory, IHttpServiceProxy proxyClient, ISerializationStrategyFactory serializerFactory, IDeserializationStrategyFactory deserializerFactory) { if (requestContextFactory == null) { throw new ArgumentNullException(nameof(requestContextFactory)); } if (proxyClient == null) { throw new ArgumentNullException(nameof(proxyClient)); } if (serializerFactory == null) { throw new ArgumentNullException(nameof(serializerFactory)); } if (deserializerFactory == null) { throw new ArgumentNullException(nameof(deserializerFactory)); } RequestContextFactory = requestContextFactory; ProxyClient = proxyClient; SerializerFactory = serializerFactory; DeserializerFactory = deserializerFactory; }
/// <inheritdoc /> public void Register(IHttpServiceProxy proxy) { //TODO: Should we throw if a client is already set? Client = proxy; }