Beispiel #1
0
        public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
        {
            if (!_config.EnableModule(_type))
            {
                await base.OnActionExecutionAsync(context, next);

                return;
            }
            var dto = new MonitorData(_type);
            var key = string.Format(ItemKey, _type);

            context.HttpContext.Items.Add(key, dto);
        }