コード例 #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;
 }
コード例 #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>();
        }
コード例 #3
0
 protected ControllerBase(ActionInvoker actionInvoker, WebSocketServerBase server)
 {
     _actionInvoker = actionInvoker;
     _server        = server;
 }