Exemple #1
0
        public void EmptySettingsFrameShouldMatch()
        {
            Http2Settings settings = new Http2Settings();

            writer.WriteSettingsAsync(this.ctx.Object, settings, this.ctx.Object.NewPromise());
            this.ReadFrames();
            this.listener.Verify(
                x => x.OnSettingsRead(
                    It.Is <IChannelHandlerContext>(c => c == this.ctx.Object),
                    It.Is <Http2Settings>(v => v.SequenceEqual(settings))));
        }
 public virtual Task WriteSettingsAsync(IChannelHandlerContext ctx, Http2Settings settings, IPromise promise)
 {
     return(_innerWriter.WriteSettingsAsync(ctx, settings, promise));
 }
Exemple #3
0
 public Task WriteSettingsAsync(IChannelHandlerContext ctx, Http2Settings settings, IPromise promise)
 {
     _logger.LogSettings(Direction.Outbound, ctx, settings);
     return(_writer.WriteSettingsAsync(ctx, settings, promise));
 }