public async Task <Response> Delete(
            DeleteStreamMessageOperation operation,
            CancellationToken cancellationToken)
        {
            await operation.Invoke(_streamStore, cancellationToken);

            return(NoContentResponse.Instance);
        }
Example #2
0
        private static MidFunc DeleteStreamMessage(StreamMessageResource streamMessages) => async(context, next) =>
        {
            var operation = new DeleteStreamMessageOperation(context.Request);

            var response = await streamMessages.Delete(operation, context.RequestAborted);

            await context.WriteResponse(response);
        };