Class AutomaticConcretionContainerRegistrationAttribute
Used to register all classes or structs that implement a specific interface or inherits from a base class. This attribute should be applied to the interface or base class that the class should be registered as in the Container
Inheritance
AutomaticConcretionContainerRegistrationAttribute
Inherited Members
Namespace: VaraniumSharp.Attributes
Assembly: VaraniumSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
public sealed class AutomaticConcretionContainerRegistrationAttribute : AutomaticContainerRegistrationBaseAttribute
Constructors
| Improve this Doc View SourceAutomaticConcretionContainerRegistrationAttribute()
Parameterless Constructor sets Reuse to default
Declaration
public AutomaticConcretionContainerRegistrationAttribute()
AutomaticConcretionContainerRegistrationAttribute(ServiceReuse)
Constructor that allows setting Reuse directly
Declaration
public AutomaticConcretionContainerRegistrationAttribute(ServiceReuse reuse)
Parameters
Type | Name | Description |
---|---|---|
ServiceReuse | reuse | Indicate service reuse type |
AutomaticConcretionContainerRegistrationAttribute(ServiceReuse, Boolean)
Constructor that allows setting Reuse directly
Declaration
public AutomaticConcretionContainerRegistrationAttribute(ServiceReuse reuse, bool multipleConstructors)
Parameters
Type | Name | Description |
---|---|---|
ServiceReuse | reuse | Indicate service reuse type |
Boolean | multipleConstructors | Indicate if the service has multiple constructors |