IWMSOutgoingDistributionConnection Object (C#)

The IWMSOutgoingDistributionConnection object manages distribution connections. Distribution connections are used to stream content between servers. For example, a cache server, acting as a client, can connect to a Windows Media server and distribute content to players or to other servers.

The IWMSOutgoingDistributionConnection object exposes the following properties.

Property

Description

ID

Retrieves a unique value identifying a client that is receiving the distributed content.

NetworkAddress

Retrieves the network address of the client receiving the distributed content.

Port

Retrieves the port number of the client receiving the distributed content.

RequestedPlaylist

Retrieves the client's requested playlist object.

RequestedURL

Retrieves the URL that the client used to request a distribution connection.

ResolvedURL

Retrieves the URL of the content being streamed to the distribution connection.

Status

Retrieves the status of the client.

UserName

Retrieves the authenticated name of the client.

WrapperPlaylist

Retrieves the client's wrapper playlist object.

Example

The following example illustrates how to retrieve an IWMSOutgoingDistributionConnection object.

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer                              Server;
IWMSOutgoingDistributionConnections    Connections;
IWMSOutgoingDistributionConnection     Connection;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the IWMSOutgoingDistributionConnections object.
    Connections = Server.OutgoingDistributionConnections;

    // Retrieve information about each distribution connection.
    for (int i = 0; i < Connections.Count; i++)
    {
        Connection = Connections[i];
    }
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

See Also

Reference

IWMSOutgoingDistributionConnections Object (C#)

Concepts

Server Object Model (C#)