/// <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); }
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; }
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; }