Class NetworkConnectionsManager
Manager for the available network connections. The class can be instantiated with the NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>) constructor, or composed using MEF.
Inheritance
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll
Syntax
public sealed class NetworkConnectionsManager : Object, IDisposable
Constructors
NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector>)
Initializes a new instance of the NetworkConnectionsManager class.
Declaration
public NetworkConnectionsManager(IEnumerable<INetworkConnectionsDetector> networkConnectionsDetectors)
Parameters
System.Collections.Generic.IEnumerable<INetworkConnectionsDetector>
networkConnectionsDetectors
The network connections detectors to be executed. |
Methods
Dispose()
Releases the instance.
Declaration
public void Dispose()
Finalize()
Finalizes an instance of the NetworkConnectionsManager class.
Declaration
protected override void Finalize()
GetAllConnectionFullNames()
Gets the names of all detected network connections.
Declaration
public IEnumerable<NetworkConnectionFullName> GetAllConnectionFullNames()
Returns
System.Collections.Generic.IEnumerable<NetworkConnectionFullName>
|
GetCurrentProxySettingsForConnection(NetworkConnectionFullName)
Declaration
public ProxySettings GetCurrentProxySettingsForConnection(NetworkConnectionFullName fullName)
Parameters
NetworkConnectionFullName
fullName
|
Returns
ProxySettings
|
SetProxySettingsForConnections(ProxySettings, IEnumerable<NetworkConnectionFullName>)
Declaration
public void SetProxySettingsForConnections(ProxySettings settings, IEnumerable<NetworkConnectionFullName> fullNames)
Parameters
ProxySettings
settings
|
System.Collections.Generic.IEnumerable<NetworkConnectionFullName>
fullNames
|
SetProxySettingsForConnections(ProxySettings, NetworkConnectionFullName[])
Declaration
public void SetProxySettingsForConnections(ProxySettings settings, params NetworkConnectionFullName[] fullNames)
Parameters
ProxySettings
settings
|
NetworkConnectionFullName[]
fullNames
|
Events
ProxySettingsChanged
Occurs when proxy settings for any of the detected network connection changes.
Declaration
public event EventHandler<ProxySettingsChangedEventArgs> ProxySettingsChanged
Event Type
System.EventHandler<ProxySettingsChangedEventArgs>
|