Page tree
Skip to end of metadata
Go to start of metadata

Minisinks offer a convenient way to provide a simple event processor that can be managed by the event system. You provide an interface with a few core functions (Persistence, creation, evaluation etc) and the event system will integrate it within the events system and take care of everything from connecting your minisink to an event, persisting event connections and managing its lifetime. The minisink needs to be registered with the WinGate Engine and the WinGate Management Console with EventsRegisterMiniSinkEngine and EventsRegisterMiniSinkGUI respectively.

Limitations

Minisinks cannot return any value. This is because, unlike full sinks, they cannot control how the event flows from one minisink to the next. All minisinks in the chain for the event are executed one after the other.

Minisink event attachment is under user control. The user gets to chose which minisinks are attached to which events. As the minisink provider you cannot programatically attach minisinks to events.

 

The interface that you register when registering your minisink mimics the interface that is used when you register a policy item. Therefore when creating a mini sink (or policy item) it becomes easy to provide the other functionality.

  • No labels