示例#1
0
        private async Task <WorkflowsDto> InvokeCommandAsync(ICommand command)
        {
            var context = await CommandBus.PublishAsync(command);

            var result   = context.Result <IAppEntity>();
            var response = await WorkflowsDto.FromAppAsync(workflowsValidator, result, this);

            return(response);
        }
示例#2
0
        public IActionResult GetWorkflows(string app)
        {
            var response = Deferred.AsyncResponse(() =>
            {
                return(WorkflowsDto.FromAppAsync(workflowsValidator, App, this));
            });

            Response.Headers[HeaderNames.ETag] = App.ToEtag();

            return(Ok(response));
        }
示例#3
0
 private async Task <WorkflowsDto> GetResponse(IAppEntity result)
 {
     return(await WorkflowsDto.FromAppAsync(workflowsValidator, result, Resources));
 }