Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creating custom listeners

Catel provides several listeners out of the box. To create custom listeners, the only requirement is to implement the IApiCopListener. To make it easier to create custom listeners (such as an HTML listener), Catel provides the following base classes which can also be used as a base for custom listeners:

  • ApiCopListenerBase
    Gives most flexibility, but is also more work to implement 
  • TextApiCopListenerBase
    Is fully prepared for all text-based listeners (such as console, text file, etc), and only requires the implementation of the WriteLine method