The DuplicateLoginRequest event is triggered when the runtime system detects that the user requesting a session has already logged into the system.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler<CancelEventArgs> DuplicateLoginRequest
Using the IConnection Interface for the DuplicateLoginRequest Event
The following code is an example of using the DuplicateLoginRequest event:
// Register for the DuplicateLoginRequest event ABSConnection.DuplicateLoginRequest += HandleDuplicateLogin; // HandleDuplicateLogin is the handler for processing the // DuplicateLoginRequest event when a new session tries to connect // to the host system using Login credentials that are already being // used by an existing session. public void HandleDuplicateLogin(object sender, CancelEventArgs args) { // Cancel the event and Log a message args.Cancel = true; ApplicationLogger.LogInfo(() => string.Format("A duplicate Login condition has been encountered!")); }