Skip to content

DefaultHandlerRegistry class

namespace: Serenity.Services   assembly: Serenity.Net.Services

Default implementation for the IDefaultHandlerRegistry.

public class DefaultHandlerRegistry : IDefaultHandlerRegistry, IDisposable

Public Members

name description
DefaultHandlerRegistry(…) Initializes a new instance of the class.
Dispose()
virtual GetTypes()
GetTypes(…)

Remarks

Scans the ITypeSource lazily on first use and caches the concrete IRequestHandler types. When the type source also implements IChangeTokenProvider, the cache is reset whenever its change token fires, e.g. when dynamic assemblies or feature toggles change, and rebuilt on next use. A failed scan is not cached, so a later call retries it.

See Also