Ejemplo n.º 1
0
 public void GetNetworkInformation()
 {
     if (string.IsNullOrEmpty(NetworkInformation.PublicIp))
     {
         NetworkInformation.PublicIp         = NetworkUtilities.GetPublicIp();
         NetworkInformation.NetworkComputers = NetworkUtilities.ConnectedDevices();
         NetworkInformation.MacAddress       = NetworkUtilities.GetMacAddress().ToString();
         NetworkInformation.InternalIp       = NetworkUtilities.GetIpAddress().ToString();
     }
     _serializator.Serialize(_client, _packet.Endpoint, _packet.SyncKey, NetworkInformation.ToObject());
 }