예제 #1
0
        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();

               // }
        }
예제 #2
0
 public EventsController(IEventManagerService eventManagerService)
 {
     _eventManagerService = eventManagerService;
 }
예제 #3
0
 public EventService(IEventManagerService eventManager, IMessageBusService messageBusService, IAuditService auditService)
 {
     _eventManager = eventManager;
     _messageBusService = messageBusService;
     _auditService = auditService;
 }