private void AddHandlers() { Server.CommandMessageReceived += EventCommandMessageHandler; Server.ConnectMessageReceived += EventConnectMessageHandler; Server.RequestReceived += EventRequestHandler; Server.TelemetryReceived += EventTelemetryHandler; Server.ErrorMessageReceived += EventErrHandler; Server.OrderReceived += EventOrderHandler; //TODO валидатор ConnectMessageReceived += (o, args) => DbManager.AddDevice(args.ConnectMessage.Device); TelemetryReceived += (o, args) => DbManager.AddData(args.TelemetryInfo); }