Skip to content

Reference

OpcDiscoveryServer Members

Represents a discovery server with which servers register and which provides the registered servers to clients.

Reference

OpcDiscoveryServer Members ​

Type
OpcDiscoveryServer
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcServerBase, OpcApplicationInstance<OpcTransport, OpcServerSecurity>.

Constructors ​

OpcDiscoveryServer ​

3 overloads

OverloadDescription
OpcDiscoveryServer()Initializes a new instance of the OpcDiscoveryServer class using the address "opc.tcp://localhost:4840".
OpcDiscoveryServer(string)Initializes a new instance of the OpcDiscoveryServer class using the address specified.
OpcDiscoveryServer(Uri)Initializes a new instance of the OpcDiscoveryServer class using the address specified.

OpcDiscoveryServer() ​

Initializes a new instance of the OpcDiscoveryServer class using the address "opc.tcp://localhost:4840".

csharp
public OpcDiscoveryServer()
vbnet
Public Sub New()

OpcDiscoveryServer(string) ​

Initializes a new instance of the OpcDiscoveryServer class using the address specified.

csharp
public OpcDiscoveryServer(string address)
vbnet
Public Sub New(address As String)

Parameters

NameTypeDescription
addressStringThe string representation of the address of the discovery server which needs to use one of the supported schemes 'opc.tcp' and 'https'.

Exceptions

ExceptionCondition
ArgumentExceptionThe address is equals Empty or is not an absolute URI using one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address is a null reference (Nothing in Visual Basic).

OpcDiscoveryServer(Uri) ​

Initializes a new instance of the OpcDiscoveryServer class using the address specified.

csharp
public OpcDiscoveryServer(Uri address)
vbnet
Public Sub New(address As Uri)

Parameters

NameTypeDescription
addressUriThe Uri of the address of the discovery server which needs to use one of the supported schemes 'opc.tcp' and 'https'.

Exceptions

ExceptionCondition
ArgumentExceptionThe address does not use one of the supported schemes 'opc.tcp' and 'https'.
ArgumentNullExceptionThe address is a null reference (Nothing in Visual Basic).

Properties ​

SystemContext ​

override · since v2.11

Gets the OpcContext which is used to store the context sensitive data and configuration used by the current OpcDiscoveryServer instance.

csharp
public override OpcContext SystemContext { get; }
vbnet
Public Overrides ReadOnly Property SystemContext As OpcContext

Property value

OpcContext

An instance of the OpcContext class which might be at least Empty.

Overrides

SystemContext

Methods ​

CreateConfiguration ​

protected · override

Creates the configuration which is used to start the discovery server.

csharp
[CLSCompliant(false)]
protected override OpcApplicationConfiguration CreateConfiguration()
vbnet
<CLSCompliant(False)>
Protected Overrides Function CreateConfiguration() As OpcApplicationConfiguration

Returns

OpcApplicationConfiguration

The OpcApplicationConfiguration created by the base class. If it defines no security policy for the discovery server, a policy using the security mode SignAndEncrypt and the security policy Basic128Rsa15 is added.

Overrides

CreateConfiguration

StartCore ​

protected · override

Starts the discovery server using the configuration specified.

csharp
[CLSCompliant(false)]
protected override void StartCore(OpcApplicationConfiguration configuration)
vbnet
<CLSCompliant(False)>
Protected Overrides Sub StartCore(configuration As OpcApplicationConfiguration)

Parameters

NameTypeDescription
configurationOpcApplicationConfigurationThe OpcApplicationConfiguration to use to start the discovery server.

Overrides

StartCore

StopCore ​

protected · override

Stops the discovery server.

csharp
protected override void StopCore()
vbnet
Protected Overrides Sub StopCore()

Overrides

StopCore