public async Task Consume(ConsumeContext <IChangeUserRoleRequest> context)
        {
            var result = OperationResultWrapper.CreateResponse(ChangeRoleAsync, context.Message);

            await context.RespondAsync <IOperationResult <bool> >(result);
        }
        public async Task Consume(ConsumeContext <ICheckTokenRequest> context)
        {
            var response = OperationResultWrapper.CreateResponse(GetValidationResult, context.Message);

            await context.RespondAsync <IOperationResult <Guid> >(response);
        }
Beispiel #3
0
        public async Task Consume(ConsumeContext <ICreateWorkspaceRequest> context)
        {
            var response = OperationResultWrapper.CreateResponse(CreateWorkspace, context.Message);

            await context.RespondAsync <IOperationResult <bool> >(response);
        }
        public async Task Consume(ConsumeContext <ICheckUserRightsRequest> context)
        {
            var response = OperationResultWrapper.CreateResponse(HasRightAsync, context.Message);

            await context.RespondAsync <IOperationResult <bool> >(response);
        }
Beispiel #5
0
        public async Task Consume(ConsumeContext <ICreateFilesRequest> context)
        {
            object response = OperationResultWrapper.CreateResponse(CreateFilesAsync, context.Message);

            await context.RespondAsync <IOperationResult <bool> >(response);
        }