Esempio n. 1
0
 public ClientController(ActionInvoker actionInvoker, WebSocketServerBase server,
     DataContext dataContext, JsonMapperManager jsonMapperManager,
     [Named("DeviceNotification")] DeviceSubscriptionManager subscriptionManager,
     CommandSubscriptionManager commandSubscriptionManager,
     MessageBus messageBus) :
     base(actionInvoker, server, dataContext, jsonMapperManager)
 {
     _subscriptionManager = subscriptionManager;
     _commandSubscriptionManager = commandSubscriptionManager;
     _messageBus = messageBus;
 }
Esempio n. 2
0
        public DeviceController(ActionInvoker actionInvoker, WebSocketServerBase server,
            DataContext dataContext, JsonMapperManager jsonMapperManager,
            [Named("DeviceCommand")] DeviceSubscriptionManager subscriptionManager,
            MessageBus messageBus, IMessageManager messageManager,
            DeviceService deviceService) :
            base(actionInvoker, server, dataContext, jsonMapperManager)
        {
            _subscriptionManager = subscriptionManager;
            _messageBus = messageBus;
            _messageManager = messageManager;
            _deviceService = deviceService;

            _deviceMapper = jsonMapperManager.GetMapper<Device>();
        }
Esempio n. 3
0
 protected ControllerBase(ActionInvoker actionInvoker, WebSocketServerBase server)
 {
     _actionInvoker = actionInvoker;
     _server        = server;
 }