public void UpgradeToHttp2MultiplexCodec() { var b = Http2MultiplexCodecBuilder.ForServer(new HttpInboundHandler()); b.GracefulShutdownTimeout = TimeSpan.Zero; TestUpgrade(b.Build(), null); }
public void TestUnsharableHandler() { Assert.Throws <ArgumentException>(() => Http2MultiplexCodecBuilder.ForServer(new UnsharableChannelHandler())); }
public void TestSharableCheck() { Assert.NotNull(Http2MultiplexCodecBuilder.ForServer(new SharableChannelHandler1())); Assert.NotNull(Http2MultiplexCodecBuilder.ForServer(new SharableChannelHandler2())); }