Class KEFCoreRocksDbLifecycleAttribute
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Declares the IRocksDbLifecycleHandler type associated to an entity type.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class KEFCoreRocksDbLifecycleAttribute : Attribute
- Inheritance
-
KEFCoreRocksDbLifecycleAttribute
- Inherited Members
Remarks
This attribute supports only a handler Type because attributes cannot store runtime delegates or runtime handler instances.
Constructors
KEFCoreRocksDbLifecycleAttribute(Type)
Initializes a new instance of KEFCoreRocksDbLifecycleAttribute.
public KEFCoreRocksDbLifecycleAttribute(Type handlerType)
Parameters
handlerTypeTypeThe handler type implementing IRocksDbLifecycleHandler.
Exceptions
- ArgumentNullException
Thrown when
handlerTypeis null.- ArgumentException
Thrown when
handlerTypedoes not implement IRocksDbLifecycleHandler.
Properties
HandlerType
Gets the handler type implementing IRocksDbLifecycleHandler.
public Type HandlerType { get; }