Beispiel #1
0
        public EventingHubService(IHubContext <EventingHub> eventingHub, IInboundEventProvider inboundEventProvider, IRabbitInboundEventProvider rabbitInboundEventProvider)
        {
            _eventingHub                = eventingHub;
            _inboundEventProvider       = inboundEventProvider;
            _rabbitInboundEventProvider = rabbitInboundEventProvider;

            if (SystemBehaviorConfig.ServiceBusType == ServiceBusTypes.Rabbit)
            {
                _rabbitInboundEventProvider.RegisterForEvents(PersonnelStatusUpdated, UnitStatusUpdated, CallsUpdated, PersonnelStaffingUpdated);
            }
            else
            {
                _inboundEventProvider.RegisterForEvents(PersonnelStatusUpdated, UnitStatusUpdated, CallsUpdated, PersonnelStaffingUpdated);
            }
        }
Beispiel #2
0
 public EventingHub()
 {
     _inboundEventProvider   = WebBootstrapper.GetKernel().Resolve <IInboundEventProvider>();
     _departmentLinksService = WebBootstrapper.GetKernel().Resolve <IDepartmentLinksService>();
     _inboundEventProvider.RegisterForEvents(PersonnelStatusUpdated, UnitStatusUpdated, CallsUpdated, PersonnelStaffingUpdated);
 }