예제 #1
0
 public abstract void OnConnectMessage(object sender, EventMessageConnectArgs args);
예제 #2
0
 public void ConnectMessageReceivedInvoke(RemoteHostInfo hostInfo, EventMessageConnectArgs args) => ConnectMessageReceived?.Invoke(hostInfo, args);
예제 #3
0
        protected override void EventConnectMessageHandler(RemoteHostInfo remoteHost, EventMessageConnectArgs args)
        {
            Logger.Debug($"MessageManager.EventConnectMessageHandler Invoked for ({remoteHost.Host} via {remoteHost.Protocol} code: {args.Message.DeviceCode})");
            //TODO валидация?
            var device = args.ConnectMessage.Device;

            Worker.AddAddress(device.Code, new Addresses(device.MacAddress, remoteHost.Host));
            _ConnectMessageReceived?.Invoke(this, args);
        }
예제 #4
0
 public void OnConnectMessage(RemoteHostInfo remoteHost, EventMessageConnectArgs args)
 {
 }
 protected override void EventConnectMessageHandler(RemoteHostInfo remoteHost, EventMessageConnectArgs args)
 {
     Logger.Debug($"MessageManager.EventConnectMessageHandler Invoked for ({remoteHost.Host} via {remoteHost.Protocol} code: {args.Message.DeviceCode})");
     _ConnectMessageReceived?.Invoke(this, args);
 }
 protected abstract void EventConnectMessageHandler(RemoteHostInfo remoteHost, EventMessageConnectArgs args);