public void WindowUpdateFrameShouldMatch() { writer.WriteWindowUpdateAsync(this.ctx.Object, STREAM_ID, WINDOW_UPDATE, this.ctx.Object.NewPromise()); this.ReadFrames(); this.listener.Verify( x => x.OnWindowUpdateRead( It.Is <IChannelHandlerContext>(c => c == this.ctx.Object), It.Is <int>(id => id == STREAM_ID), It.Is <int>(v => v == WINDOW_UPDATE))); }
public virtual Task WriteWindowUpdateAsync(IChannelHandlerContext ctx, int streamId, int windowSizeIncrement, IPromise promise) { return(_innerWriter.WriteWindowUpdateAsync(ctx, streamId, windowSizeIncrement, promise)); }
public Task WriteWindowUpdateAsync(IChannelHandlerContext ctx, int streamId, int windowSizeIncrement, IPromise promise) { _logger.LogWindowsUpdate(Direction.Outbound, ctx, streamId, windowSizeIncrement); return(_writer.WriteWindowUpdateAsync(ctx, streamId, windowSizeIncrement, promise)); }