C# Class Opc.Ua.Client.Controls.ConnectServerCtrl

A tool bar used to connect to a server.
Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: OPCFoundation/UA-.NET

Private Properties

Property Type Description
CertificateValidator_CertificateValidation void
DoConnectComplete void
InitializeComponent void
SelectEndpoint EndpointDescription
Server_ConnectMI_Click void
Server_ReconnectComplete void
Session_KeepAlive void
UpdateStatus void

Public Methods

Method Description
Connect ( ) : Session

Creates a new session.

Connect ( string serverUrl, bool useSecurity ) : Session

Creates a new session.

ConnectServerCtrl ( ) : System

Initializes the object.

Disconnect ( ) : void

Disconnects from the server.

Discover ( string hostName ) : void

Prompts the user to choose a server on another host.

SetAvailableUrls ( IList urls ) : void

Sets the URLs shown in the control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CertificateValidator_CertificateValidation ( CertificateValidator sender, CertificateValidationEventArgs e ) : void

Handles a certificate validation error.

DoConnectComplete ( object state ) : void

Raises the connect complete event on the main GUI thread.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SelectEndpoint ( ) : EndpointDescription

Finds the endpoint that best matches the current settings.

Server_ConnectMI_Click ( object sender, EventArgs e ) : void

Handles a click on the connect button.

Server_ReconnectComplete ( object sender, EventArgs e ) : void

Handles a reconnect event complete from the reconnect handler.

Session_KeepAlive ( Session session, KeepAliveEventArgs e ) : void

Handles a keep alive event from a session.

UpdateStatus ( bool error, System.DateTime time, string status ) : void

Updates the status control.

Method Details

Connect() public method

Creates a new session.
public Connect ( ) : Session
return Session

Connect() public method

Creates a new session.
public Connect ( string serverUrl, bool useSecurity ) : Session
serverUrl string The URL of a server endpoint.
useSecurity bool Whether to use security.
return Session

ConnectServerCtrl() public method

Initializes the object.
public ConnectServerCtrl ( ) : System
return System

Disconnect() public method

Disconnects from the server.
public Disconnect ( ) : void
return void

Discover() public method

Prompts the user to choose a server on another host.
public Discover ( string hostName ) : void
hostName string
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

SetAvailableUrls() public method

Sets the URLs shown in the control.
public SetAvailableUrls ( IList urls ) : void
urls IList
return void