コード例 #1
0
        private void SendSystemInformation()
        {
            try
            {
                var dataObject = new NetworkDataObject
                {
                    Data = SystemInformation.Collect(),
                    Type = NetworkDataObjectType.AgentSendSystemInformation
                };

                this.formatter.Serialize(this.stream, dataObject);
            }
            catch (Exception exception)
            {
                this.logger.FatalFormat(
                    "Unable to send system information to the controller. Caught Exception: {0}",
                    exception);
                throw;
            }
        }