/// <summary> /// Configures a <see cref="ISocketConnectionInterceptor"/> on this socket client /// </summary> /// <param name="builder"> /// The <see cref="IServiceCollection"/>. /// </param> /// <param name="interceptor"> /// The interceptor that should be used /// </param> /// <returns> /// An <see cref="IWebSocketClientBuilder"/> that can be used to configure the client. /// </returns> public static IWebSocketClientBuilder ConfigureConnectionInterceptor( this IWebSocketClientBuilder builder, ISocketConnectionInterceptor interceptor) { return(builder.ConfigureConnectionInterceptor(_ => interceptor)); }
public ConnectMessageInterceptor( ISocketConnectionInterceptor <HttpContext> connectionInterceptor) { _interceptor = connectionInterceptor; }