Click or drag to resize
BroccoliSharp BroConnectionRegisterForEvent Method (String, ActionBroEventArgs, Object)
Registers for events that arrive with the name of eventName using specified eventHandler.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public void RegisterForEvent(
	string eventName,
	Action<BroEventArgs> eventHandler,
	Object userData = null
)

Parameters

eventName
Type: SystemString
Event name to register for.
eventHandler
Type: SystemActionBroEventArgs
Event handler to use for the event.
userData (Optional)
Type: SystemObject
Any user-data to be passed to event.
Exceptions
ExceptionCondition
ArgumentNullExceptioneventName or eventHandler is null.
ObjectDisposedExceptionCannot register for event, BroConnection is disposed.
Remarks
Users can use this event registration function to provide a direct handler for the event instead attaching to the ReceivedEvent and using one common handler for all events.
See Also