.NET Based OPC UA Client/Server SDK  3.1.0.500
UnifiedAutomation.UaBase.ReverseConnectManager Class Reference

ToDo: Move to own file Manages reverse connections on client side. More...

Inherits UnifiedAutomation.UaBase.ServerBase, and UnifiedAutomation.UaBase.IIncomingReverseConnectionManager.

Public Member Functions

 ReverseConnectManager ()
 Creates instance of ReverseConnectManager More...
 
override void Start (ApplicationInstanceBase application)
 Initializes the ThreadPool. More...
 
void InitializeTransportListener (string url)
 Checks if a transport listener for the url already exists. Creates a new transport listener otherwise. More...
 
void RemoveTransportListener (string url)
 Removes and disposes the Transport listener. More...
 
bool TryGetConnectionGroup (string endpointUrl, out IncomingReverseConnectionGroup connectionGroup)
 Tries to find a IncomingReverseConnectionGroup for a endpoint url. More...
 
IncomingReverseConnectionGroup GetConnectionGroup (string endpointUrl)
 Tries to find an existing IncomingReverseConnectionGroup with the correct endpointUrl. Creates a new group if no group can be found. More...
 
- Public Member Functions inherited from UnifiedAutomation.UaBase.ServerBase
 ServerBase ()
 Initializes object with default values. More...
 
void Dispose ()
 Frees any unmanaged resources. More...
 
void ScheduleIncomingRequest (IEndpointIncomingRequest request)
 Schedules an incoming request. More...
 
ApplicationLicense GetProductLicense ()
 Gets the application license. More...
 
virtual void Stop ()
 Stops the server and releases all resources. More...
 
void RunInThreadPool (ThreadPoolEventHandler callback, object request)
 Runs an operation the in server thread pool. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Frees any unmanaged resources. More...
 
- Protected Member Functions inherited from UnifiedAutomation.UaBase.ServerBase
void InitializeRequestQueue (ApplicationInstanceBase configuration)
 Initializes the request queue. More...
 
virtual void DispatchRequest (IEndpointIncomingRequest request)
 Adds a request to the queue. More...
 
virtual void ProcessRequest (IEndpointIncomingRequest request)
 Processes the request. More...
 
ITransportListener CreateListener (ApplicationInstanceBase application)
 Creates the UA TCP listener. More...
 
virtual void OnOutgoingReverseConnectionClosed (object sender, OutgoingReverseConnectionUpdateEventArgs e)
 
virtual void OnOutgoingReverseConnectionOpened (object sender, OutgoingReverseConnectionUpdateEventArgs e)
 
virtual void ValidateRequest (RequestHeader requestHeader)
 Verifies that the request header is valid. More...
 
virtual ResponseHeader CreateResponse (RequestHeader requestHeader, uint statusCode)
 Creates the response header. More...
 
virtual void OnUpdateConfiguration (ApplicationInstanceBase configuration)
 Called when the server configuration is changed on disk. More...
 
virtual void OnServerStarting (ApplicationInstanceBase configuration)
 Called before the server starts. More...
 
virtual List< StatusCodeInitializeServices (ApplicationInstanceBase application)
 Creates the endpoints and creates the hosts. More...
 
virtual void StartApplication (ApplicationInstanceBase configuration)
 Starts the server application. More...
 
virtual void OnServerStopping ()
 Called before the server stops More...
 
string NormalizeHostname (string hostname)
 Checks for IP address or well known hostnames that map to the computer. More...
 
ApplicationDescription GetApplicationDescription (Uri clientUrl, ApplicationDescription description, LocalizedText applicationName)
 Gets the application description. More...
 
EndpointDescriptionCollection GetEndpointDescriptions (Uri clientUrl, ApplicationDescription application)
 Gets the endpoint descriptions. More...
 

Properties

IEnumerable
< IncomingReverseConnectionGroup
IncomingReverseConnections [get]
 
- Properties inherited from UnifiedAutomation.UaBase.ServerBase
ApplicationInstanceBase Application [get]
 Gets the application. More...
 
MessageContext MessageContext [get]
 The message context to use with the service. More...
 
ApplicationThreadPool ThreadPool [get]
 Gets the thread pool used by the server. More...
 
StatusCode ServerError [get]
 An error condition that describes why the server if not running (null if no error exists). More...
 
ISecurityProvider SecurityProvider [get]
 Gets the security provider. More...
 
IEnumerable< ITransportListenerTransportListeners [get]
 Gets the list of transport listeners used by the server instance. More...
 
- Properties inherited from UnifiedAutomation.UaBase.IServerBase
ApplicationInstanceBase Application [get]
 Gets the application. More...
 
MessageContext MessageContext [get]
 The message context to use with the service. More...
 
StatusCode ServerError [get]
 An error condition that describes why the server if not running (null if no error exists). More...
 
- Properties inherited from UnifiedAutomation.UaBase.IIncomingReverseConnectionEvent
IEnumerable
< IncomingReverseConnectionGroup
IncomingReverseConnections [get]
 

Events

EventHandler
< IncomingReverseConnectionGroupUpdateEventArgs
IncomingConnectionOpened
 
EventHandler
< IncomingReverseConnectionGroupUpdateEventArgs
IncomingConnectionClosed
 
- Events inherited from UnifiedAutomation.UaBase.IIncomingReverseConnectionEvent
EventHandler
< IncomingReverseConnectionGroupUpdateEventArgs
IncomingConnectionOpened
 

Additional Inherited Members

- Protected Attributes inherited from UnifiedAutomation.UaBase.ServerBase
MessageContext m_messageContext
 The message context.
 
ApplicationInstanceBase m_application
 The application instance More...
 
List< ITransportListenerm_listeners
 The transport listeners managed by the ServerBase More...
 
ApplicationLicense m_license
 The found sdk license. More...
 

Detailed Description

ToDo: Move to own file Manages reverse connections on client side.

Shall only be used by UaClient.Session, UaClient.Discovery, ApplicationInstanceBase

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.ReverseConnectManager.ReverseConnectManager ( )
inline

Creates instance of ReverseConnectManager

Member Function Documentation

override void UnifiedAutomation.UaBase.ReverseConnectManager.Dispose ( bool  disposing)
inlineprotectedvirtual

Frees any unmanaged resources.

Reimplemented from UnifiedAutomation.UaBase.ServerBase.

IncomingReverseConnectionGroup UnifiedAutomation.UaBase.ReverseConnectManager.GetConnectionGroup ( string  endpointUrl)
inline

Tries to find an existing IncomingReverseConnectionGroup with the correct endpointUrl. Creates a new group if no group can be found.

Parameters
endpointUrlThe endpoint url of the IncomingReverseConnectionGroup to find.
Returns
The existing or newly created IncomingReverseConnectionGroup.
void UnifiedAutomation.UaBase.ReverseConnectManager.InitializeTransportListener ( string  url)
inline

Checks if a transport listener for the url already exists. Creates a new transport listener otherwise.

Parameters
url
void UnifiedAutomation.UaBase.ReverseConnectManager.RemoveTransportListener ( string  url)
inline

Removes and disposes the Transport listener.

Parameters
url
override void UnifiedAutomation.UaBase.ReverseConnectManager.Start ( ApplicationInstanceBase  application)
inlinevirtual

Initializes the ThreadPool.

Is called by ApplicationInstanceBase.

Parameters
applicationIt is recommended that the application manages a ThreadPool. This ThreadPool will be shared withthe ReverseConnect instance.

Reimplemented from UnifiedAutomation.UaBase.ServerBase.

bool UnifiedAutomation.UaBase.ReverseConnectManager.TryGetConnectionGroup ( string  endpointUrl,
out IncomingReverseConnectionGroup  connectionGroup 
)
inline

Tries to find a IncomingReverseConnectionGroup for a endpoint url.

Parameters
endpointUrlThe endpoint url of the IncomingReverseConnectionGroup to find.
connectionGroupThe returned IncomingReverseConnectionGroup.
Returns
true, if a group can be found, otherwise false.

The documentation for this class was generated from the following file: