예제 #1
0
 public Http3ConnectionMiddleware(ServiceContext serviceContext, IHttpApplication <TContext> application)
 {
     _serviceContext = serviceContext;
     _application    = application;
 }
예제 #2
0
 public ConnectionDispatcher(ServiceContext serviceContext, ConnectionDelegate connectionDelegate)
 {
     _serviceContext     = serviceContext;
     _connectionDelegate = connectionDelegate;
 }
 public ConnectionHandler(ServiceContext serviceContext, ConnectionDelegate connectionDelegate)
 {
     _serviceContext     = serviceContext;
     _connectionDelegate = connectionDelegate;
 }
예제 #4
0
        public static IMultiplexedConnectionBuilder UseHttp3Server <TContext>(this IMultiplexedConnectionBuilder builder, ServiceContext serviceContext, IHttpApplication <TContext> application, HttpProtocols protocols, bool addAltSvcHeader) where TContext : notnull
        {
            var middleware = new HttpMultiplexedConnectionMiddleware <TContext>(serviceContext, application, protocols, addAltSvcHeader);

            return(builder.Use(next =>
            {
                return middleware.OnConnectionAsync;
            }));
        }
예제 #5
0
 public HttpConnectionMiddleware(ServiceContext serviceContext, IHttpApplication <TContext> application, HttpProtocols protocols)
 {
     _serviceContext = serviceContext;
     _application    = application;
     _protocols      = protocols;
 }