Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EventRegistry.Subscribe(Object, Type) Method

Subscribes to published events of all objects of a given type, if the subscriber implements compatible handler methods.

[Visual Basic]
Public Overridable Overloads Sub Subscribe( _
   ByVal subscriber As Object, _
   ByVal sourceType As Type _
) _
    Implements IEventRegistry.Subscribe
[C#]
public virtual void Subscribe(
   object subscriber,
   Type sourceType
);

Parameters

subscriber
The subscriber to use.
sourceType
The target Type to subscribe to.

Implements

IEventRegistry.Subscribe

See Also

EventRegistry Class | Spring.Objects.Events.Support Namespace | EventRegistry.Subscribe Overload List