Tranceive() public method

public Tranceive ( Messages message ) : void
message Messages
return void
コード例 #1
0
ファイル: GobiLoader.cs プロジェクト: joshperry/stuff
        public void LoadFirmware()
        {
            var firmwares = new Firmware.FirmwareProvider();
            using (var txer = new Messages.MessageTransceiver(new PortProvider(_config.DeviceIds.Cast<Config.DeviceConfiguration>())))
            {
                txer.Tranceive(new Messages.InitialMessage());

                txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AmssFirmware));
                txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AmssFirmware));

                txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AppsFirmware));
                txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AppsFirmware));

                txer.Tranceive(new Messages.ConclusionMessage());
            }
        }
コード例 #2
0
ファイル: GobiLoader.cs プロジェクト: dimkas/stuff
        public void LoadFirmware()
        {
            var firmwares = new Firmware.FirmwareProvider();

            using (var txer = new Messages.MessageTransceiver(new PortProvider(_config.DeviceIds.Cast <Config.DeviceConfiguration>())))
            {
                txer.Tranceive(new Messages.InitialMessage());

                txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AmssFirmware));
                txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AmssFirmware));

                txer.Tranceive(new Messages.FirmwarePreludeMessage(firmwares.AppsFirmware));
                txer.Tranceive(new Messages.SendFirmwareFileMessage(firmwares.AppsFirmware));

                txer.Tranceive(new Messages.ConclusionMessage());
            }
        }