public async Task Invoke(IMessageContext context, MiddlewareDelegate next) { MessageStorage.Add((byte[])context.Message); await next(context); }