Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractListenerContainer.RunningAllowed Method

Check whether this container's listeners are generally allowed to run.

[Visual Basic]
Protected Overridable Sub RunningAllowed()
[C#]
protected virtual bool RunningAllowed();

Return Value

false
if such a restriction prevents listeners from running.

Remarks

This implementation always returns

true
; the default 'running' state is purely determined by Start and Stop

Subclasses may override this method to check against temporary conditions that prevent listeners from actually running. In other words, they may apply further restrictions to the 'running' state, returning

false
if such a restriction prevents listeners from running.

See Also

AbstractListenerContainer Class | Spring.Messaging.Listener Namespace