public void RstStreamFrameShouldMatch() { writer.WriteRstStreamAsync(this.ctx.Object, STREAM_ID, ERROR_CODE, this.ctx.Object.NewPromise()); this.ReadFrames(); this.listener.Verify( x => x.OnRstStreamRead( It.Is <IChannelHandlerContext>(c => c == this.ctx.Object), It.Is <int>(id => id == STREAM_ID), It.Is <Http2Error>(v => v == ERROR_CODE))); }
public virtual Task WriteRstStreamAsync(IChannelHandlerContext ctx, int streamId, Http2Error errorCode, IPromise promise) { return(_innerWriter.WriteRstStreamAsync(ctx, streamId, errorCode, promise)); }
public Task WriteRstStreamAsync(IChannelHandlerContext ctx, int streamId, Http2Error errorCode, IPromise promise) { _logger.LogRstStream(Direction.Outbound, ctx, streamId, errorCode); return(_writer.WriteRstStreamAsync(ctx, streamId, errorCode, promise)); }