.NET Based OPC UA Client/Server SDK
3.3.0.530
|
Automatically registers an application at a Global Discovery Server. More...
Inherits UnifiedAutomation.UaBase.IGlobalDiscoveryService.
Inherited by UnifiedAutomation.UaClient.GdsPullManagement.
Public Member Functions | |
GdsRegisterManagement (ApplicationInstanceBase application) | |
Creates an instance of GdsRegisterManagement. More... | |
void | Dispose () |
virtual void | Start (GdsSettings settings) |
Starts the registering process. More... | |
virtual void | Stop () |
Starts the unregistering process. More... | |
Protected Member Functions | |
void | DisposeMembers () |
Disconnects the GdsRegisterManagement.Session and disposes GdsRegisterManagement.Client and GdsRegisterManagement.Session. More... | |
virtual async void | DoIntialGdsIntercation (object state) |
Periodically tries to register the application at the GDS. More... | |
async Task | ConnectToGdsAsync () |
Connects to the GDS. More... | |
async Task | RegisterIfRequiredAsync () |
Checks if the application already has been registered and registers it if required. More... | |
virtual void | OnApplicationIdUpdated () |
Is called after ApplicationId was updated. More... | |
Properties | |
ApplicationInstanceBase | Application [get] |
The managed application instance. More... | |
GdsSettings | Settings [get, set] |
The configured settings. More... | |
Session | Session [get] |
The Session for communicating with the GDS by GdsRegisterManagement.Client. More... | |
CertificateDirectoryClient | Client [get, set] |
The CertificateDirectoryClient used for communicating with the GDS. More... | |
Timer | Timer [get, set] |
The Timer for initial GDS interaction and periodic status checks (subclasses only). More... | |
NodeId | ApplicationId [get] |
The ApplicationId returned by the GDS. More... | |
int | OperationTimeout [get, set] |
The default OperationTimeout in milliseconds. More... | |
Events | |
EventHandler < BeforeConnectEventArgs > | BeforeConnect |
Is called before the Session to the Gds will connect. Can be used to update the user credentials. More... | |
EventHandler < ActionFailedEventArgs > | ConnectFailed |
Is called if the client could not connect to the GDS. More... | |
EventHandler < ApplicationRegisteredEventArgs > | ApplicationRegistered |
Is called after the application has been registered at the GDS. More... | |
EventHandler < ActionFailedEventArgs > | RegisterApplicationFailed |
Is called if registering failed. More... | |
EventHandler< EventArgs > | ApplicationUnregistered |
Is called in the application has been unregistered after calling the GdsRegisterManagement.Stop method. More... | |
Automatically registers an application at a Global Discovery Server.
This class shall be used on server side. It shall be set at UaBase.ApplicationInstanceBase.GdsHandler and the UaSchema.GdsSettings shall be set in the application configuration.
UnifiedAutomation.UaClient.GdsRegisterManagement.GdsRegisterManagement | ( | ApplicationInstanceBase | application | ) |
Creates an instance of GdsRegisterManagement.
application | The application instance to register. |
|
protected |
Connects to the GDS.
Creates Session and Client.
|
protected |
Disconnects the GdsRegisterManagement.Session and disposes GdsRegisterManagement.Client and GdsRegisterManagement.Session.
|
protectedvirtual |
Periodically tries to register the application at the GDS.
Is called by a Timer started in the GdsRegisterManagement.Start method.
The cycle time is the configured RetryFrequency in the GdsRegisterManagement.Settings. The Timer gets stopped after registering the application was successful.
Reimplemented in UnifiedAutomation.UaClient.GdsPullManagement.
|
protectedvirtual |
Is called after ApplicationId was updated.
Reimplemented in UnifiedAutomation.UaClient.GdsPullManagement.
|
protected |
Checks if the application already has been registered and registers it if required.
|
virtual |
Starts the registering process.
settings | The settings from the application configuration. |
Exception |
|
virtual |
Starts the unregistering process.
|
getprotected |
The managed application instance.
|
getprotected |
The ApplicationId returned by the GDS.
|
getsetprotected |
The CertificateDirectoryClient used for communicating with the GDS.
|
getset |
The default OperationTimeout in milliseconds.
If 0, the OperationTimeout of Session.DefaultRequestSettings is used.
|
getprotected |
The Session for communicating with the GDS by GdsRegisterManagement.Client.
|
getsetprotected |
The configured settings.
|
getsetprotected |
The Timer for initial GDS interaction and periodic status checks (subclasses only).
EventHandler<ApplicationRegisteredEventArgs> UnifiedAutomation.UaClient.GdsRegisterManagement.ApplicationRegistered |
Is called after the application has been registered at the GDS.
EventHandler<EventArgs> UnifiedAutomation.UaClient.GdsRegisterManagement.ApplicationUnregistered |
Is called in the application has been unregistered after calling the GdsRegisterManagement.Stop method.
EventHandler<BeforeConnectEventArgs> UnifiedAutomation.UaClient.GdsRegisterManagement.BeforeConnect |
Is called before the Session to the Gds will connect. Can be used to update the user credentials.
EventHandler<ActionFailedEventArgs> UnifiedAutomation.UaClient.GdsRegisterManagement.ConnectFailed |
Is called if the client could not connect to the GDS.
EventHandler<ActionFailedEventArgs> UnifiedAutomation.UaClient.GdsRegisterManagement.RegisterApplicationFailed |
Is called if registering failed.