Namespace: Opc.UaFx.Server
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcServer type exposes the following members.
C#
public OpcServer()
C#
public OpcServer(Action<OpcAddressSpace> createNodes)
Parameters
createNodes
Action<OpcAddressSpace>
Exceptions
C#
public OpcServer(IEnumerable<OpcNodeManager> nodeManagers)
Parameters
nodeManagers
IEnumerable<OpcNodeManager>
Exceptions
C#
public OpcServer(params OpcNodeManager[] nodeManagers)
Parameters
nodeManagers
OpcNodeManager[]
Exceptions
C#
public OpcServer(string address, Action<OpcAddressSpace> createNodes)
Parameters
address
String
createNodes
Action<OpcAddressSpace>
Exceptions
C#
public OpcServer(string address, IEnumerable<IOpcNode> nodes)
Parameters
address
String
nodes
IEnumerable<IOpcNode>
Exceptions
C#
public OpcServer(string address, IEnumerable<OpcNodeManager> nodeManagers)
Parameters
address
String
nodeManagers
IEnumerable<OpcNodeManager>
Exceptions
C#
public OpcServer(string address, params OpcNodeManager[] nodeManagers)
Parameters
address
String
nodeManagers
OpcNodeManager[]
Exceptions
C#
public OpcServer(Uri address, Action<OpcAddressSpace> createNodes)
Parameters
address
Uri
createNodes
Action<OpcAddressSpace>
Exceptions
C#
public OpcServer(Uri address, IEnumerable<IOpcNode> nodes)
Parameters
address
Uri
nodes
IEnumerable<IOpcNode>
Exceptions
C#
public OpcServer(Uri address, IEnumerable<OpcNodeManager> nodeManagers)
Parameters
address
Uri
nodeManagers
IEnumerable<OpcNodeManager>
Exceptions
C#
public OpcServer(Uri address, params OpcNodeManager[] nodeManagers)
Parameters
address
Uri
nodeManagers
OpcNodeManager[]
Exceptions
C#
public event OpcRequestProcessedEventHandler RequestProcessed
C#
public event OpcRequestProcessingEventHandler RequestProcessing
C#
public event OpcRequestValidatedEventHandler RequestValidated
C#
public event OpcRequestValidatingEventHandler RequestValidating
C#
public event OpcSessionEventHandler SessionActivated
C#
public event EventHandler SessionActivating
C#
public event EventHandler SessionClosed
C#
public event OpcSessionEventHandler SessionClosing
C#
public event OpcSessionEventHandler SessionCreated
C#
public event EventHandler SessionCreating
Occurs when a new subscription is created through a OpcSession.
C#
public event OpcSubscriptionEventHandler SubscriptionCreated
Occurs when an existing subscription of a OpcSession has been deleted.
C#
public event OpcSubscriptionEventHandler SubscriptionDeleted
Gets the OpcServerGlobalization instance used to control the localization and other globalization related tasks.
C#
public OpcServerGlobalization Globalization { get; }
Property Value
An instance of the OpcServerGlobalization class used by the current OpcServer to perform localization tasks.
Gets the OpcContext which is used to store the context sensitive data and configuration used by the current OpcServer instance.
C#
public override OpcContext SystemContext { get; }
Property Value
An instance of the OpcContext class which might be at least Empty.
C#
[CLSCompliant(false)] protected override OpcApplicationConfiguration CreateConfiguration()
Returns
C#
public IEnumerable<OpcEndpointDescription> GetEndpoints()
Returns
IEnumerable<OpcEndpointDescription>
Exceptions
Retrieves the OpcSession associated with the sessionId
specified.
C#
public OpcSession GetSession(OpcNodeId sessionId)
Parameters
sessionId
OpcNodeId
The OpcNodeId which uniquely identifies the session requested within the created sessions on the current OpcServer.
Returns
Exceptions
The sessionId
is a null reference (Nothing in Visual Basic).
The server has not yet been started.
The object has been disposed of.
Retrieves all currently known sessions created on the current OpcServer.
C#
public IEnumerable<OpcSession> GetSessions()
Returns
A sequence of OpcSession instances.
Exceptions
The server has not yet been started.
The object has been disposed of.
C#
public IEnumerable<OpcSubscription> GetSubscription()
Returns
Exceptions
C#
protected virtual void OnRequestProcessed(OpcRequestProcessedEventArgs e)
Parameters
e
OpcRequestProcessedEventArgs
C#
protected virtual void OnRequestProcessing(OpcRequestProcessingEventArgs e)
Parameters
e
OpcRequestProcessingEventArgs
C#
protected virtual void OnRequestValidated(OpcRequestValidatedEventArgs e)
Parameters
e
OpcRequestValidatedEventArgs
C#
protected virtual void OnRequestValidating(OpcRequestValidatingEventArgs e)
Parameters
e
OpcRequestValidatingEventArgs
C#
protected virtual void OnSessionActivated(OpcSessionEventArgs e)
Parameters
Raises the SubscriptionCreated event of the OpcServer.
C#
protected virtual void OnSubscriptionCreated(OpcSubscriptionEventArgs e)
Parameters
The event data.
Raises the SubscriptionDeleted event of the OpcServer.
C#
protected virtual void OnSubscriptionDeleted(OpcSubscriptionEventArgs e)
Parameters
The event data.
Produces a global event using the event data specified.
C#
public void ReportEvent(IOpcNode source, OpcEventSeverity severity, OpcText message)
Parameters
source
IOpcNode
The IOpcNode instance its Id is used for the SourceNodeId property and its SymbolicName is used for the SourceName property to define the origin of the event produced.
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event.
Exceptions
The source
or message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the event data specified.
C#
public void ReportEvent(IOpcNode source, OpcEventSeverity severity, OpcText message, params object[] arguments)
Parameters
source
IOpcNode
The IOpcNode instance its Id is used for the SourceNodeId property and its SymbolicName is used for the SourceName property to define the origin of the event produced.
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event with format placeholders which where replaced with the arguments
specified.
arguments
Object[]
The values to place into the message
using its format placeholders.
Exceptions
The source
or message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the eventNode
specified.
C#
public void ReportEvent(OpcEventNode eventNode)
Parameters
eventNode
OpcEventNode
The OpcEventNode its event information is to be reported as a global event.
Exceptions
The eventNode
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the event data specified.
C#
public void ReportEvent(OpcEventSeverity severity, OpcText message)
Parameters
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event.
Exceptions
The message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the event data specified.
C#
public void ReportEvent(OpcEventSeverity severity, OpcText message, params object[] arguments)
Parameters
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event with format placeholders which where replaced with the arguments
specified.
arguments
Object[]
The values to place into the message
using its format placeholders.
Exceptions
The message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the event data specified.
C#
public void ReportEvent(OpcNodeId sourceNodeId, string sourceName, OpcEventSeverity severity, OpcText message)
Parameters
sourceNodeId
OpcNodeId
The OpcNodeId which is to be used for the SourceNodeId property to define the origin of the event produced.
sourceName
String
The String which is to be used for the SourceName.
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event.
Exceptions
The message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
Produces a global event using the event data specified.
C#
public void ReportEvent(OpcNodeId sourceNodeId, string sourceName, OpcEventSeverity severity, OpcText message, params object[] arguments)
Parameters
sourceNodeId
OpcNodeId
The OpcNodeId which is to be used for the SourceNodeId property to define the origin of the event produced.
sourceName
String
The String which is to be used for the SourceName.
severity
OpcEventSeverity
An indication of the urgency of the event.
message
OpcText
A human-readable and localizable text description of the event with format placeholders which where replaced with the arguments
specified.
arguments
Object[]
The values to place into the message
using its format placeholders.
Exceptions
The message
is a null reference (Nothing in Visual Basic).
The State is not equals Started.
The object has been disposed of.
The operation failed (see exception details for more information).
C#
protected override void ResumeCore()
C#
[CLSCompliant(false)] protected override void StartCore(OpcApplicationConfiguration configuration)
Parameters
configuration
OpcApplicationConfiguration
C#
protected override void StopCore()
C#
protected override void SuspendCore()