In order to facilitate registration of your server macro class, you must include an empty constructor. This constructor is only used when FVTerm is enumerating the available server macros--it will create an instance of your class in order to read the Registration Properties, then dispose of the instance immediately during startup.
/// <summary>
/// Required constructor to enable enumeration of available macros and their properties
/// </summary>
public Logon()
{
}
When your macro is activated by client action (selecting from list or using a defined hot-key), your class constructor includes a MacroHost object reference. The ServerMacro class base constructor needs to be called with this parameter as follows:
/// <summary>
/// Required constructor calling the base ServerMacro class with the MacroHost object
/// </summary>
/// <param name="host">The MacroHost class manages the interface between FVTerm and Server macros</param>
public Logon(MacroHost host):base(host)
{
}