Aeon Addon System Events

In Aeon, there are two system events in the client that system addons can register for.

System Event: "UserSwitch"

Argument: UserSwitchEventArgs

This system event is raised when the switch user feature of the Aeon client is used to allow another staff user to log in without closing the client.

Properties

UserSwitchEventArgs has three properties:

Username (string)The staff username that has been switched to.
FirstName (string)The first name of the staff user that has been switched to.
LastName (string)The last name of the staff user that has been switched to.

DataContext

None

System Event: "NewEmail"

Argument: NewEmailEventArgs

This system event is raised when the Aeon client is generating an email. It is used to allow addons the chance to replace email tags. Email tags of the form <#Addon.[tag]> will be passed to the addon registered for this system event.

Properties

NewEmailEventArgs has two properties:

EmailTypeThe type of email (Transaction, User, or ReferenceRequest)
Tags

A list of TemplateTagReplacement objects. TemplateTagReplacement objects have two fields:

  • Tag - The [tag] name.
  • Value - The value to replace the addon tag with. The addon sets this value, and the Aeon Client will use it to replace instances of <#Addon.[tag]> in the email it is building.

DataContext

UserA Sser object representing the recipient of the email.
TransactionThe data context will contain a Transaction object if it is a transaction email.