private void FireEvent(AppActivity.Type type, HttpContext context) { try { _mediator.SendAll(new OnAppActivity(new AppActivity() { ActivityType = type, Context = context })); } catch (Exception ex) { _logger.LogError(ex.ToString()); } }
private static void FireEvent(AppActivity.Type started) { try { Mediator?.SendAll( new OnAppActivity( new AppActivity() { ActivityType = started, Context = HttpContext, Services = Services, ServiceProvider = ServiceProvider }) ); } catch (Exception ex) { Logger?.LogError(ex.Message); } }