コード例 #1
0
 public void PriorityFrameShouldMatch()
 {
     writer.WritePriorityAsync(this.ctx.Object, STREAM_ID, 1, (short)1, true, this.ctx.Object.NewPromise());
     this.ReadFrames();
     this.listener.Verify(
         x => x.OnPriorityRead(
             It.Is <IChannelHandlerContext>(c => c == this.ctx.Object),
             It.Is <int>(id => id == STREAM_ID),
             It.Is <int>(v => v == 1),
             It.Is <short>(v => v == 1),
             It.Is <bool>(v => v == true)));
 }
コード例 #2
0
 public virtual Task WritePriorityAsync(IChannelHandlerContext ctx, int streamId, int streamDependency, short weight, bool exclusive, IPromise promise)
 {
     return(_innerWriter.WritePriorityAsync(ctx, streamId, streamDependency, weight, exclusive, promise));
 }
コード例 #3
0
 public Task WritePriorityAsync(IChannelHandlerContext ctx, int streamId, int streamDependency, short weight, bool exclusive, IPromise promise)
 {
     _logger.LogPriority(Direction.Outbound, ctx, streamId, streamDependency, weight, exclusive);
     return(_writer.WritePriorityAsync(ctx, streamId, streamDependency, weight, exclusive, promise));
 }