Beispiel #1
0
        public async Task <IActionResult> Get()
        {
            var actions = await _actionSource.GetActions();

            return(Ok(new MonitoringDto
            {
                EventCount = actions.LongCount()
            }));
        }
Beispiel #2
0
 public static List <ActionDescriptor> GetActions(this IActionSource actionSource,
                                                  Configuration configuration, HttpConfiguration httpConfiguration)
 {
     return(actionSource.GetActions(new ActionSourceContext(configuration, httpConfiguration)));
 }