.NET Based OPC UA Client/Server SDK  2.6.0.418
UnifiedAutomation.UaBase.ServiceHost Class Reference

A host for a UA service. More...

Inherits ServiceHost, and UnifiedAutomation.UaBase.IServiceHostBase.

Public Member Functions

 ServiceHost (ServerBase server, Type endpointType, params Uri[] addresses)
 Initializes the service host. More...
 
void InitializeSinglePolicy (Type contractType, ApplicationInstance application, EndpointDescription endpoint)
 Initializes the host for protocols that support a single policy per endpoint. More...
 

Protected Member Functions

override void OnClosing ()
 Shutdowns the server gracefully. More...
 
override void OnOpening ()
 Starts the UA TCP listener if configured as part of the host. More...
 

Properties

IServerBase Server [get]
 The UA server instance associated with the service host. More...
 
bool StopServerOnClose [get, set]
 Whether the host should stop its contained server when it is closed. More...
 
- Properties inherited from UnifiedAutomation.UaBase.IServiceHostBase
IServerBase Server [get]
 The UA server instance associated with the service host. More...
 

Detailed Description

A host for a UA service.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.ServiceHost.ServiceHost ( ServerBase  server,
Type  endpointType,
params Uri[]  addresses 
)
inline

Initializes the service host.

Parameters
serverThe server.
endpointTypeType of the endpoint.
addressesThe addresses.

Member Function Documentation

void UnifiedAutomation.UaBase.ServiceHost.InitializeSinglePolicy ( Type  contractType,
ApplicationInstance  application,
EndpointDescription  endpoint 
)
inline

Initializes the host for protocols that support a single policy per endpoint.

Parameters
contractTypeType of the contract.
applicationThe application.
endpointThe endpoint.
override void UnifiedAutomation.UaBase.ServiceHost.OnClosing ( )
inlineprotected

Shutdowns the server gracefully.

override void UnifiedAutomation.UaBase.ServiceHost.OnOpening ( )
inlineprotected

Starts the UA TCP listener if configured as part of the host.

Property Documentation

IServerBase UnifiedAutomation.UaBase.ServiceHost.Server
get

The UA server instance associated with the service host.

The server.

bool UnifiedAutomation.UaBase.ServiceHost.StopServerOnClose
getset

Whether the host should stop its contained server when it is closed.

true if server is to be stoped on close, otherwise false.


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