示例#1
0
        public IActionResult GetClients(string app)
        {
            var response = ClientsDto.FromApp(App, this);

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

            return(Ok(response));
        }
示例#2
0
        private async Task <ClientsDto> InvokeCommandAsync(ICommand command)
        {
            var context = await CommandBus.PublishAsync(command);

            var result   = context.Result <IAppEntity>();
            var response = ClientsDto.FromApp(result, this);

            return(response);
        }
示例#3
0
        public IActionResult GetClients(string app)
        {
            var response = Deferred.Response(() =>
            {
                return(ClientsDto.FromApp(App, this));
            });

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

            return(Ok(response));
        }
 private ClientsDto GetResponse(IAppEntity app)
 {
     return(ClientsDto.FromApp(app, Resources));
 }
 private ClientsDto GetResponse(IAppEntity app)
 {
     return(ClientsDto.FromApp(App, this));
 }