Click or drag to resize
IUniversalPlugAndPlayManager Interface
The interface for the object that deals with UPnP routers for the application.

Namespace: VirtualRadar.Interface.WebServer
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IUniversalPlugAndPlayManager : IDisposable

The IUniversalPlugAndPlayManager type exposes the following members.

Properties
  NameDescription
Public propertyIsEnabled
Gets a value mirroring the configuration option that enables or disables the use of the UPnP router.
Public propertyIsRouterPresent
Gets a value indicating that a UPnP router is present on the network.
Public propertyPortForwardingPresent
Gets a value indicating that there is a port forwarding on the router that redirects packets from the Internet on the UPnP port indicated by the configuration to this machine and to the port that WebServer is listening to.
Public propertyProvider
Gets or sets the provider that abstracts away the environment for the tests.
Public propertyWebServer
Gets or sets the web server that wants packets sent to it from the outside world via the UPnP router.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodInitialise
Initialises the manager once all of the properties have been built up.
Public methodPutServerOntoInternet
Adds the necessary port mappings to the UPnP router to put the WebServer onto the Internet.
Public methodTakeServerOffInternet
Reverses the port mappings added to the UPnP router by PutServerOntoInternet with the intention of taking the WebServer off the Internet.
Top
Events
  NameDescription
Public eventStateChanged
Raised when any of the properties that describe the state of the manager changes.
Top
See Also