C# Class Opc.Ua.ServiceHost

A host for a UA service.
Inheritance: System.ServiceModel.ServiceHost, IServiceHostBase
ファイルを表示 Open project: OPCFoundation/Misc-Tools

Public Methods

Method Description
InitializeDiscovery ( ApplicationConfiguration configuration, StringCollection discoveryUrls ) : void

Adds the discovery url to the hosts.

ServiceHost ( ServerBase server, Type endpointType ) : System

Initializes the service host.

Protected Methods

Method Description
OnClosing ( ) : void

Shutdowns the server gracefully.

OnOpening ( ) : void

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

Private Methods

Method Description
InitializeSinglePolicy ( Type contractType, ApplicationConfiguration configuration, BindingFactory bindingFactory, EndpointConfiguration endpointConfiguration, List endpoints, MessageSecurityMode securityMode, string securityPolicyUri ) : void

Method Details

InitializeDiscovery() public method

Adds the discovery url to the hosts.
public InitializeDiscovery ( ApplicationConfiguration configuration, StringCollection discoveryUrls ) : void
configuration ApplicationConfiguration The configuration.
discoveryUrls StringCollection The discovery urls.
return void

OnClosing() protected method

Shutdowns the server gracefully.
protected OnClosing ( ) : void
return void

OnOpening() protected method

Starts the UA TCP listener if configured as part of the host.
protected OnOpening ( ) : void
return void

ServiceHost() public method

Initializes the service host.
public ServiceHost ( ServerBase server, Type endpointType ) : System
server ServerBase The server.
endpointType System.Type Type of the endpoint.
return System