private void LogRequest(object sender, EventArgs e) { var app = sender as HttpApplication; if (app == null || app.Context.Handler == null) return; // if (app.Context.Handler is System.Web.Mvc.MvcHandler) //{ _eventManagerService = AppHostBase.Instance.TryResolve<IEventManagerService>(); if(_eventManagerService != null) _eventManagerService.FireEvents(); // } }
public EventsController(IEventManagerService eventManagerService) { _eventManagerService = eventManagerService; }
public EventService(IEventManagerService eventManager, IMessageBusService messageBusService, IAuditService auditService) { _eventManager = eventManager; _messageBusService = messageBusService; _auditService = auditService; }