Interface INetworkManager
Assembly: MediaBrowser.Common.dll
public interface INetworkManager
Properties
Declaration
Func<string[]> LocalSubnetsFn { get; set; }
Property Value
Type |
Description |
System.Func<String[]> |
|
Declaration
string[] RemoteApiAddresses { get; }
Property Value
Declaration
string[] RemoteIPAddresses { get; }
Property Value
Methods
Declaration
Task<IPAddress[]> GetHostAddressesAsync(string host, CancellationToken cancellationToken)
Parameters
Returns
Declaration
IPAddress[] GetLocalIpAddresses()
Returns
Declaration
Task<IPAddress[]> GetLocalIpAddresses(CancellationToken cancellationToken)
Parameters
Returns
Returns MAC Address from first Network Card in Computer
Declaration
List<string> GetMacAddresses()
Returns
Type |
Description |
List<String> |
[string] MAC Address
|
Gets available devices within the domain
Declaration
Task<List<FileSystemEntryInfo>> GetNetworkDevices(CancellationToken cancellationToken)
Parameters
Returns
Declaration
IEnumerable<NetworkShare> GetNetworkShares(string path)
Parameters
Type |
Name |
Description |
String |
path |
The path.
|
Returns
Gets a random port number that is currently available
Declaration
int GetRandomUnusedTcpPort()
Returns
Type |
Description |
System.Int32 |
System.Int32.
|
Declaration
int GetRandomUnusedUdpPort()
Returns
Type |
Description |
System.Int32 |
|
Declaration
bool IsAddressInSubnets(IPAddress address, string[] subnets)
Parameters
Returns
Declaration
bool IsInLocalNetwork(IPAddress remoteAddress)
Parameters
Type |
Name |
Description |
IPAddress |
remoteAddress |
|
Returns
Declaration
Task<bool> IsInLocalNetwork(IPAddress remoteAddress, CancellationToken cancellationToken)
Parameters
Returns
Determines whether [is in local network] [the specified endpoint].
Declaration
Task<bool> IsInLocalNetwork(string endpoint, CancellationToken cancellationToken)
Parameters
Returns
Type |
Description |
Task<Boolean> |
true if [is in local network] [the specified endpoint]; otherwise, false .
|
Determines whether [is in private address space] [the specified endpoint].
Declaration
bool IsInPrivateAddressSpace(ReadOnlySpan<char> endpoint)
Parameters
Returns
Type |
Description |
Boolean |
true if [is in private address space] [the specified endpoint]; otherwise, false .
|
Events
Declaration
event EventHandler NetworkChanged
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
event EventHandler RemoteAddressesChanged
Event Type
Type |
Description |
System.EventHandler |
|
Extension Methods