public async Task <IActionResult> Get() { var actions = await _actionSource.GetActions(); return(Ok(new MonitoringDto { EventCount = actions.LongCount() })); }
public static List <ActionDescriptor> GetActions(this IActionSource actionSource, Configuration configuration, HttpConfiguration httpConfiguration) { return(actionSource.GetActions(new ActionSourceContext(configuration, httpConfiguration))); }