Ejemplo n.º 1
0
		public void ApplyName(NsProtocolTypes protocolType, string name)
		{
			if (protocolType == NsProtocolTypes.WindowsNameService)
				WinNr.SetName(name);
			else if (protocolType == NsProtocolTypes.Dns)
				Dns.SetName(name);
			else if (protocolType == NsProtocolTypes.Llmnr)
				Llmnr.SetName(name);
			else if (protocolType == NsProtocolTypes.Nbns)
				Nbns.SetName(name);
			else if (protocolType == NsProtocolTypes.Wlan)
				Wlan.SetName(name);
		}
Ejemplo n.º 2
0
		internal HostnameChangeEvent(NsProtocolTypes protocolType, string old, string newHostname)
		{
			ProtocolType = protocolType;
			OldHostname = old;
			NewHostName = newHostname;
		}