예제 #1
0
        private static MidFunc DeleteStreamMessage(StreamMessageResource streamMessages) => async(context, next) =>
        {
            var options = new DeleteStreamMessageOperation(context.Request);

            var response = await streamMessages.DeleteMessage(options, context.RequestAborted);

            await context.WriteResponse(response);
        };
        private static MidFunc DeleteStreamMessage(StreamMessageResource streamMessages) => next => async env =>
        {
            var context = new OwinContext(env);

            var options = new DeleteStreamMessageOperation(context.Request);

            var response = await streamMessages.DeleteMessage(options, context.Request.CallCancelled);

            await context.WriteHalResponse(response);
        };