ExtendedDispatcherList
Overview
The ExtendedDispatcherList class is used by HTTP-based server channels to store a list of registered HTTP dispatchers like Data Abstract REST or OData dispatchers.
The ExtendedDispatcherList class is derived from the System.Collections.Generic.List with generic parameters of type IHttpDispatcher and additionally implements the IHttpServer interface.
There is no need to use this class directly.
For internal use only.
Location
- Reference: RemObjects.SDK.Server.dll
- Namespace: RemObjects.SDK.Server
- Ancestry: List<IHttpDispatcher> | ExtendedDispatcherList
Instance Methods
constructor
Creates a new instance of the ExtendedDispatcherList class.
constructor
ExtendedDispatcherList()
Sub New()
ActivateDispatchers
method ActivateDispatchers
void ActivateDispatchers()
Sub ActivateDispatchers()
DeactivateDispatchers
method DeactivateDispatchers
void DeactivateDispatchers()
Sub DeactivateDispatchers()
Dispose
Frees all resources used by the registered dispatchers and then unregisters them.
This method iterates through all registered IHttpDispatcher instances, calls their NotifyDispose method and then cleans the list of registered instances.
method Dispose
void Dispose()
Sub Dispose()
GetDispatcher
Returns an IHttpDispatcher instance that is able to process the HTTP request aPath.
This method iterates through all registered IHttpDispatcher instances and calls their CanHandlePath method. The first IHttpDispatcher instance whose method returns true will be returned as the GetDispathcer result.
If none of the list elements accept aPath, null is returned.
method GetDispatcher(path: String): IHttpDispatcher
IHttpDispatcher GetDispatcher(String path)
Function GetDispatcher(path As String) As IHttpDispatcher
Parameters:
- path:
Register
Registers the provided aDispatcher instance.
method Register(dispatcher: IHttpDispatcher)
void Register(IHttpDispatcher dispatcher)
Sub Register(dispatcher As IHttpDispatcher)
Parameters:
- dispatcher:
Unregister
Unregisters the provided aDispatcher instance.
method Unregister(dispatcher: IHttpDispatcher)
void Unregister(IHttpDispatcher dispatcher)
Sub Unregister(dispatcher As IHttpDispatcher)
Parameters:
- dispatcher:
- IHttpDispatcher
- IHttpServer
- OData Publishing (.NET)
- REST Overview