Reads the information written by a S101Logger instance.
コード例 #1
0
        private S101Robot(S101Client client, EmberTypeBag types, XmlReader logReader, bool sendFirstMessage)
        {
            this.client           = client ?? throw new ArgumentNullException(nameof(client));
            this.logReader        = new S101LogReader(types, logReader);
            this.sendFirstMessage = sendFirstMessage;

            this.client.OutOfFrameByteReceived += this.OnOutOfFrameByteReceived;
            this.client.EmberDataReceived      += this.OnClientEmberDataReceived;
            this.client.ConnectionLost         += this.OnClientConnectionLost;
            this.SendMessages();
        }
コード例 #2
0
ファイル: S101Robot.cs プロジェクト: Lawo/ember-plus-sharp
        private S101Robot(S101Client client, EmberTypeBag types, XmlReader logReader, bool sendFirstMessage)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            this.client = client;
            this.logReader = new S101LogReader(types, logReader);
            this.sendFirstMessage = sendFirstMessage;

            this.client.OutOfFrameByteReceived += this.OnOutOfFrameByteReceived;
            this.client.EmberDataReceived += this.OnClientEmberDataReceived;
            this.client.ConnectionLost += this.OnClientConnectionLost;
            this.SendMessages();
        }