示例#1
0
        public void UpgradeToHttp2MultiplexCodec()
        {
            var b = Http2MultiplexCodecBuilder.ForServer(new HttpInboundHandler());

            b.GracefulShutdownTimeout = TimeSpan.Zero;
            TestUpgrade(b.Build(), null);
        }
示例#2
0
 public void TestUnsharableHandler()
 {
     Assert.Throws <ArgumentException>(() => Http2MultiplexCodecBuilder.ForServer(new UnsharableChannelHandler()));
 }
示例#3
0
 public void TestSharableCheck()
 {
     Assert.NotNull(Http2MultiplexCodecBuilder.ForServer(new SharableChannelHandler1()));
     Assert.NotNull(Http2MultiplexCodecBuilder.ForServer(new SharableChannelHandler2()));
 }