The IUnsolicitedMessages interface exposes the events listed in the following table:
|
Events |
Description |
|---|---|
| Gets triggered when a colon command is completed. | |
| Gets triggered when user input is required by the runtime system. |
The ColonCommandCompleted event is triggered when a colon command is completed.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler ColonCommandCompleted
Using the IUnsolicitedMessages Interface for the ColonCommandCompleted Event
The following code is an example of using the ColonCommandCompleted event:
MyConnection.MessagesHandler.ColonCommandCompleted += (o, e) =>
{
// a colon command is completed.
};
The UserInputRequired event is triggered when user input is required by the runtime system.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
event EventHandler UserInputRequired
Using the IUnsolicitedMessages Interface for the UserInputRequired Event
The following code is an example of using the UserInputRequired event:
MyConnection.MessagesHandler.UserInputRequired += (o, e) =>
{
// A colon command requires an input, like running a report.
// Get the input from the user and send it back.
e.Response = "Hello";
};