Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface INetworkManager

    Namespace: MediaBrowser.Common.Net
    Assembly: MediaBrowser.Common.dll
    Syntax
    public interface INetworkManager

    Properties

    LocalSubnetsFn

    Declaration
    Func<string[]> LocalSubnetsFn { get; set; }
    Property Value
    Type Description
    System.Func<System.String[]>

    RemoteApiAddresses

    Declaration
    string[] RemoteApiAddresses { get; }
    Property Value
    Type Description
    System.String[]

    RemoteIPAddresses

    Declaration
    string[] RemoteIPAddresses { get; }
    Property Value
    Type Description
    System.String[]

    Methods

    GetHostAddressesAsync(String, CancellationToken)

    Declaration
    Task<IPAddress[]> GetHostAddressesAsync(string host, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.String host
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Net.IPAddress[]>

    GetLocalIpAddresses()

    Declaration
    IPAddress[] GetLocalIpAddresses()
    Returns
    Type Description
    System.Net.IPAddress[]

    GetLocalIpAddresses(CancellationToken)

    Declaration
    Task<IPAddress[]> GetLocalIpAddresses(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Net.IPAddress[]>

    GetMacAddresses()

    Returns MAC Address from first Network Card in Computer

    Declaration
    List<string> GetMacAddresses()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    [string] MAC Address

    GetNetworkDevices(CancellationToken)

    Gets available devices within the domain

    Declaration
    Task<List<FileSystemEntryInfo>> GetNetworkDevices(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.List<FileSystemEntryInfo>>

    PC's in the Domain

    GetNetworkShares(String)

    Gets the network shares.

    Declaration
    IEnumerable<NetworkShare> GetNetworkShares(string path)
    Parameters
    Type Name Description
    System.String path

    The path.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<NetworkShare>

    IEnumerable{NetworkShare}.

    GetRandomUnusedTcpPort()

    Gets a random port number that is currently available

    Declaration
    int GetRandomUnusedTcpPort()
    Returns
    Type Description
    System.Int32

    System.Int32.

    GetRandomUnusedUdpPort()

    Declaration
    int GetRandomUnusedUdpPort()
    Returns
    Type Description
    System.Int32

    IsAddressInSubnets(IPAddress, String[])

    Declaration
    bool IsAddressInSubnets(IPAddress address, string[] subnets)
    Parameters
    Type Name Description
    System.Net.IPAddress address
    System.String[] subnets
    Returns
    Type Description
    System.Boolean

    IsInLocalNetwork(IPAddress)

    Declaration
    bool IsInLocalNetwork(IPAddress remoteAddress)
    Parameters
    Type Name Description
    System.Net.IPAddress remoteAddress
    Returns
    Type Description
    System.Boolean

    IsInLocalNetwork(IPAddress, CancellationToken)

    Declaration
    Task<bool> IsInLocalNetwork(IPAddress remoteAddress, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Net.IPAddress remoteAddress
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    IsInLocalNetwork(String, CancellationToken)

    Determines whether [is in local network] [the specified endpoint].

    Declaration
    Task<bool> IsInLocalNetwork(string endpoint, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.String endpoint

    The endpoint.

    System.Threading.CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    true if [is in local network] [the specified endpoint]; otherwise, false.

    IsInPrivateAddressSpace(ReadOnlySpan<Char>)

    Determines whether [is in private address space] [the specified endpoint].

    Declaration
    bool IsInPrivateAddressSpace(ReadOnlySpan<char> endpoint)
    Parameters
    Type Name Description
    System.ReadOnlySpan<System.Char> endpoint

    The endpoint.

    Returns
    Type Description
    System.Boolean

    true if [is in private address space] [the specified endpoint]; otherwise, false.

    Events

    NetworkChanged

    Declaration
    event EventHandler NetworkChanged
    Event Type
    Type Description
    System.EventHandler

    RemoteAddressesChanged

    Declaration
    event EventHandler RemoteAddressesChanged
    Event Type
    Type Description
    System.EventHandler

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.