public SlaveExecuteCommander(SlaveChannelControllerAdapter channelAdapter) : base(channelAdapter.ConnectionManager, channelAdapter.ChannelId + "_ExecCommander", ChannelName, channelAdapter.ChannelId, 0, channelAdapter.User.Identity) { _deviceCommands = new List <DeviceCommand>(); _executeCommandCache = new ExecuteCommandCache(); _channelAdapter = channelAdapter; }
public SlaveExecuteCommander(SlaveChannelControllerAdapter channelAdapter, int nodeId) : base(channelAdapter.ConnectionManager, channelAdapter.ChannelId + $"_ExecCommander_{nodeId}", ChannelName, channelAdapter.ChannelId, nodeId, channelAdapter.User.Identity) { _nodeId = nodeId; _deviceCommands = new List <DeviceCommand>(); _executeCommandCache = new ExecuteCommandCache(); _channelAdapter = channelAdapter; }
public UserCloudAgent(SyncCloudAgent masterAgent, EltraDevice deviceNode, uint updateInterval, uint timeout) { _status = AgentStatus.Undefined; _identity = masterAgent.Identity; _channel = new Channel() { Status = ChannelStatus.Offline }; _executedCommands = new List <DeviceCommand>(); _channelAdapter = new SlaveChannelControllerAdapter(masterAgent.Url, deviceNode.ChannelId, masterAgent.Identity, updateInterval, timeout) { ConnectionManager = masterAgent.ConnectionManager }; Initialize(masterAgent, deviceNode); }
public UserCloudAgent(string url, string uuid, UserIdentity identity, uint updateInterval, uint timeout) { _timeout = timeout; _status = AgentStatus.Undefined; _identity = identity; _channel = new Channel() { Status = ChannelStatus.Offline }; _executedCommands = new List <DeviceCommand>(); _connectionManager = new ConnectionManager() { HostUrl = url }; _channelAdapter = new SlaveChannelControllerAdapter(url, uuid, identity, updateInterval, timeout) { ConnectionManager = _connectionManager }; Initialize(url, updateInterval); }