예제 #1
0
 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)));
 }
예제 #2
0
 public virtual Task WriteWindowUpdateAsync(IChannelHandlerContext ctx, int streamId, int windowSizeIncrement, IPromise promise)
 {
     return(_innerWriter.WriteWindowUpdateAsync(ctx, streamId, windowSizeIncrement, promise));
 }
예제 #3
0
 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));
 }