C# Class xenwinsvc.NetInfo

Inheritance: IRefresh
显示文件 Open project: xenserver/win-xenguestagent Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
NeedsRefresh ( ) : bool
NetInfo ( IExceptionHandler exceptionhandler ) : System
RecordDevices ( string type ) : void
Refresh ( bool force ) : bool
RefreshNetInfo ( ) : void
StoreChangedNetworkSettings ( ) : void

Protected Methods

Method Description
Finish ( ) : void

Private Methods

Method Description
ClonePVStatics ( string SrcName, string DestName, string SrcNetLuidMatchStr, string DestNetLuidMatchStr, bool delete ) : void
CloneValues ( RegistryKey src, RegistryKey dest ) : void
Dispose ( bool disposing ) : void
FindClassDeviceKeyForNetCfgInstanceId ( string NetCfgInstanceId ) : RegistryKey
FindClassDeviceKeyNameForNetCfgInstanceId ( string NetCfgInstanceId ) : string
FindClassDeviceNameForNetCfgInstanceId ( string NetCfgInstanceId ) : string
FindDeviceKeyForMac ( string mac ) : string
FindNetCfgInstanceIdForDriverKey ( string driverkey ) : string
FindNetCfgInstanceIdForMac ( string mac ) : string
FindNetLuidMatchStrForNetCfgInstanceId ( string NetCfgInstanceId ) : string
FromServiceIfaceToSeviceIface ( string Src, string Dest ) : void
FromServiceIfaceToStore ( string Src, RegistryKey StoreKey ) : void
FromStoreToServiceIface ( RegistryKey StoreKey, string Dest ) : void
GetMacStrFromPhysical ( System.Net.NetworkInformation.PhysicalAddress pa ) : string
StorePVNetworkSettingsToEmulatedDevicesOrSave ( ) : void
StoreSavedNetworkSettingsToEmulatedDevices ( ) : void
getIpv4AddrString ( NetworkInterface nic ) : string
getIpv6Addr ( NetworkInterface nic ) : IEnumerable
macsMatch ( string mac, NetworkInterface nic ) : bool
onAddrChange ( Object sender, EventArgs e ) : void
onVifChanged ( object nothing, System.Management.EventArrivedEventArgs args ) : void
onVifStaticIpSetting ( object nothing, System.Management.EventArrivedEventArgs args ) : void
removeDevices ( ) : void
updateNetworkInfo ( ) : void
writeDevice ( string device, NetworkInterface nics ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Finish() protected method

protected Finish ( ) : void
return void

NeedsRefresh() public method

public NeedsRefresh ( ) : bool
return bool

NetInfo() public method

public NetInfo ( IExceptionHandler exceptionhandler ) : System
exceptionhandler IExceptionHandler
return System

RecordDevices() public static method

public static RecordDevices ( string type ) : void
type string
return void

Refresh() public method

public Refresh ( bool force ) : bool
force bool
return bool

RefreshNetInfo() public static method

public static RefreshNetInfo ( ) : void
return void

StoreChangedNetworkSettings() public static method

public static StoreChangedNetworkSettings ( ) : void
return void