C# Class Quickstarts.UserAuthenticationClient.MainForm

The main form for a simple Quickstart Client application.
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: OPCFoundation/UA-.NET

Public Methods

Method Description
CreateSAMLToken ( string emailAddress ) : UserIdentity

Creates a SAML token for the specified email address.

MainForm ( ApplicationConfiguration configuration ) : System

Creates a form which uses the specified client configuration.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AnonymousImpersonateBTN_Click ( object sender, EventArgs e ) : void
CertificateImpersonateBTN_Click ( object sender, EventArgs e ) : void
ChangeLogFileBTN_Click ( object sender, EventArgs e ) : void
GetKerberosToken ( ) : IUserIdentity
InitializeComponent ( ) : void

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

KerberosImpersonateBTN_Click ( object sender, EventArgs e ) : void
MainForm ( ) : System

Creates an empty form.

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Cleans up when the main form closes.

ReadLogFilePath ( ) : void

Reads the log file path.

Server_ConnectComplete ( object sender, EventArgs e ) : void

Updates the application after connecting to or disconnecting from the server.

Server_ConnectMI_Click ( object sender, EventArgs e ) : void

Connects to a server.

Server_DisconnectMI_Click ( object sender, EventArgs e ) : void

Disconnects from the current session.

Server_DiscoverMI_Click ( object sender, EventArgs e ) : void

Prompts the user to choose a server on another host.

Server_ReconnectComplete ( object sender, EventArgs e ) : void

Updates the application after reconnecting to the server.

Server_ReconnectStarting ( object sender, EventArgs e ) : void

Updates the application after a communicate error was detected.

Session_RenewUserIdentity ( Session session, IUserIdentity identity ) : IUserIdentity

Called when a Kerberos token needs to be renewed before reconnect.

SetAvailableUserTokens ( EndpointDescription endpointDescription ) : void

Sets the available user tokens.

UserNameImpersonateBTN_Click ( object sender, EventArgs e ) : void

Method Details

CreateSAMLToken() public static method

Creates a SAML token for the specified email address.
public static CreateSAMLToken ( string emailAddress ) : UserIdentity
emailAddress string
return Opc.Ua.UserIdentity

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

MainForm() public method

Creates a form which uses the specified client configuration.
public MainForm ( ApplicationConfiguration configuration ) : System
configuration ApplicationConfiguration The configuration to use.
return System