Exemplo n.º 1
0
        public async Task <IActionResult> GetRules(string app)
        {
            var rules = await appProvider.GetRulesAsync(AppId);

            var response = RulesDto.FromRules(rules, this, app);

            Response.Headers[HeaderNames.ETag] = response.GenerateEtag();

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetRules(string app)
        {
            var rules = await ruleQuery.QueryAsync(Context);

            var response = Deferred.Response(() =>
            {
                return(RulesDto.FromRules(rules, this, app));
            });

            return(Ok(response));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> GetRules(string app)
        {
            var rules = await ruleQuery.QueryAsync(Context);

            var runningRuleId = await ruleRunnerService.GetRunningRuleIdAsync(Context.App.Id);

            var response = Deferred.Response(() =>
            {
                return(RulesDto.FromRules(rules, runningRuleId, Resources));
            });

            return(Ok(response));
        }
Exemplo n.º 4
0
        public async Task<IActionResult> GetRules(string app)
        {
            var rules = await ruleQuery.QueryAsync(Context);

            var response = Deferred.Response(() =>
            {
                return RulesDto.FromRules(rules, this, app);
            });

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

            return Ok(response);
        }
Exemplo n.º 5
0
        public async Task <IActionResult> GetRules(string app)
        {
            var rules = await appProvider.GetRulesAsync(AppId);

            var response = Deferred.Response(() =>
            {
                return(RulesDto.FromRules(rules, this, app));
            });

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

            return(Ok(response));
        }