Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
 private async Task <WorkflowsDto> GetResponse(IAppEntity result)
 {
     return(await WorkflowsDto.FromAppAsync(workflowsValidator, result, Resources));
 }