BaseTypeRequiredAttribute Class |
Namespace: Hangfire.Annotations
The BaseTypeRequiredAttribute type exposes the following members.
Name | Description | |
---|---|---|
BaseTypeRequiredAttribute | Initializes a new instance of the BaseTypeRequiredAttribute class |
[BaseTypeRequired(typeof(IComponent)] // Specify requirement public class ComponentAttribute : Attribute { } [Component] // ComponentAttribute requires implementing IComponent interface public class MyComponent : IComponent { }