public Task Invoke(ISockContext context) { return(Task.CompletedTask); }
public DefaultSockRequest(byte[] buffer, ISockContext context) { Buffer = buffer ?? throw new ArgumentNullException(nameof(buffer)); Context = context; }
public override Task Invoke(ISockContext context) { return(_middleware(context, (c) => Next(c))); }
public override async Task Invoke(ISockContext context) { Console.WriteLine($"Buffer length: {context.Request.Length}"); Console.WriteLine($"Buffer data:\n{context.Request.ReadAsString()}"); await Next(context); }
public abstract Task Invoke(ISockContext context);
public DefaultSockResponse(ISockContext context) { Context = context; }
public async Task ExecuteAsync(ISockContext context) { await _start.Invoke(context); }