Exemple #1
0
        public KestrelStackTransport(
            KestrelServerWithStack server,
            IEndPointInformation endPointInformation,
            IConnectionDispatcher dispatcher,
            IApplicationLifetime applicationLifetime,
            int ioQueueCount,
            ISocketsTrace trace)
        {
            Debug.Assert(endPointInformation != null);
            Debug.Assert(endPointInformation.Type == ListenType.IPEndPoint);
            Debug.Assert(dispatcher != null);
            Debug.Assert(applicationLifetime != null);
            Debug.Assert(trace != null);

            EndPointInformation = endPointInformation;
            Dispatcher          = dispatcher;
            AppLifetime         = applicationLifetime;
            Trace = trace;

            this.Server = server;
        }
 public KestrelStackConnectionListener(KestrelServerWithStack server, EndPoint endpoint, SocketTransportOptions options)
 {
     this.Server   = server;
     this.EndPoint = endpoint;
     this._options = options;
 }
Exemple #3
0
 public void SetServer(KestrelServerWithStack server)
 {
     this.Server = server;
 }