Class AutomaticContainerRegistrationBaseAttribute
Base class that can be used by attribute classes that deal with automatic container registration
Inheritance
AutomaticContainerRegistrationBaseAttribute
Inherited Members
Namespace: VaraniumSharp.Attributes
Assembly: VaraniumSharp.dll
Syntax
public abstract class AutomaticContainerRegistrationBaseAttribute : Attribute
Constructors
| Improve this Doc View SourceAutomaticContainerRegistrationBaseAttribute(ServiceReuse, Boolean)
Constructor that allows setting Reuse
Declaration
protected AutomaticContainerRegistrationBaseAttribute(ServiceReuse reuse, bool multipleConstructors)
Parameters
Type | Name | Description |
---|---|---|
ServiceReuse | reuse | Indicate reuse policy for the service |
Boolean | multipleConstructors | Indicate if the service has multiple constructors |
Properties
| Improve this Doc View SourceAutoResolveAtStartup
Indicate if the service should be automatically resolved during startup.
Declaration
public bool AutoResolveAtStartup { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MultipleConstructors
Indicate if the service has multiple constructors.
Containers like DryIoC need this in order to be able to properly register classes that have more than one constructor.
If the implementing container does not need it, this property can be ignored
Declaration
public bool MultipleConstructors { get; }
Property Value
Type | Description |
---|---|
Boolean |
Reuse
How the service should be setup for reuse
Declaration
public ServiceReuse Reuse { get; }
Property Value
Type | Description |
---|---|
ServiceReuse |