コード例 #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));
        }
コード例 #4
0
 private ClientsDto GetResponse(IAppEntity app)
 {
     return(ClientsDto.FromApp(app, Resources));
 }
コード例 #5
0
 private ClientsDto GetResponse(IAppEntity app)
 {
     return(ClientsDto.FromApp(App, this));
 }