Class CompositeHandler
Dispatched work to sub-handlers just like dispatcher does
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Wave.Handlers
Assembly: Azos.Wave.dll
Syntax
public sealed class CompositeHandler : WorkHandler, IDisposable, IApplicationComponent, INamed, IOrdered
Constructors
CompositeHandler(WorkDispatcher, IConfigSectionNode)
Declaration
public CompositeHandler(WorkDispatcher dispatcher, IConfigSectionNode confNode)
Parameters
Type | Name | Description |
---|---|---|
WorkDispatcher | dispatcher | |
IConfigSectionNode | confNode |
CompositeHandler(WorkDispatcher, String, Int32, WorkMatch)
Declaration
public CompositeHandler(WorkDispatcher dispatcher, string name, int order, WorkMatch match)
Parameters
Type | Name | Description |
---|---|---|
WorkDispatcher | dispatcher | |
System.String | name | |
System.Int32 | order | |
WorkMatch | match |
Properties
Handlers
Returns ordered registry of handlers
Declaration
public IRegistry<WorkHandler> Handlers { get; }
Property Value
Type | Description |
---|---|
IRegistry<WorkHandler> |
Methods
DoHandleWork(WorkContext)
Declaration
protected override void DoHandleWork(WorkContext work)
Parameters
Type | Name | Description |
---|---|---|
WorkContext | work |
Overrides
RegisterHandler(WorkHandler)
Registers handler and returns true if the named instance has not been registered yet Note: it is possible to call this method on active server that is - inject handlers while serving requests
Declaration
public bool RegisterHandler(WorkHandler handler)
Parameters
Type | Name | Description |
---|---|---|
WorkHandler | handler |
Returns
Type | Description |
---|---|
System.Boolean |
UnRegisterHandler(WorkHandler)
Unregisters handler and returns true if the named instance has been removed Note: it is possible to call this method on active server that is - remove handlers while serving requests
Declaration
public bool UnRegisterHandler(WorkHandler handler)
Parameters
Type | Name | Description |
---|---|---|
WorkHandler | handler |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IDisposable