Пример #1
0
        /// <summary>
        /// Initialize a new instance of this class
        /// </summary>
        public NetClient()
        {
            Commands                = new CommandCollection();
            _SendCommands           = new Dictionary <int, NetCommand>();
            CommandExecutionManager = new CommandSubscriptionManager();
            ServerCommandsManager   = new CommandSubscriptionManager();

            _SocketReader = new SocketReader();
            _SocketReader.CommandIdReaded += new EventHandler(SocketReader_CommandIdReaded);
        }
Пример #2
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;
 }
Пример #3
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;
 }