Interface ISsdpDevicePublisher
Interface for components that publish the existence of SSDP devices.
Namespace: MediaBrowser.Model.Ssdp
Assembly: MediaBrowser.Model.dll
Syntax
public interface ISsdpDevicePublisher
Remarks
Publishing a device includes sending notifications (alive and byebye) as well as responding to search requests when appropriate.
Methods
AddDevices(List<SsdpRootDevice>, CancellationToken)
Adds a device (and it's children) to the list of devices being published by this server, making them discoverable to SSDP clients.
Declaration
Task AddDevices(List<SsdpRootDevice> devices, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SsdpRootDevice> | devices | The devices. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
RemoveDevices(List<SsdpRootDevice>, CancellationToken)
Removes a device (and it's children) from the list of devices being published by this server, making them undiscoverable.
Declaration
Task RemoveDevices(List<SsdpRootDevice> devices, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SsdpRootDevice> | devices | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |