DefaultImplementationAttribute Class |
Note: This API is now obsolete.
Instructs ObjectFactoryT to use Implementation as a default implementation when an instance of interface or class targeted by this attribute is requested.
Important: The attribute performed registration of a ServiceServiceInterface. The service's registration was backed by ObjectFactoryT, therefore the attribute performed registration in ObjectFactoryT. Since ServiceServiceInterface registration is no longer backed by ObjectFactoryT, the suggested replacement (RegisterImplementationAttribute) does not affect ObjectFactoryT. If registration in object factory is intended, use SetObjectTypeToNewType(Boolean, Boolean).
Namespace: CMS
[ObsoleteAttribute("Use [assembly: CMS.RegisterImplementation(typeof(ImplementedType), typeof(Implementation), Priority = CMS.Core.RegistrationPriority.Fallback)]", true)] public sealed class DefaultImplementationAttribute : Attribute
The DefaultImplementationAttribute type exposes the following members.
Name | Description | |
---|---|---|
DefaultImplementationAttribute |
Instructs ObjectFactoryT to use implementation whenever an instance of interface or class targeted by this attribute is requested.
|
Name | Description | |
---|---|---|
CanBeReplaced |
Indicates whether ObjectFactoryT allows for replacement of the default implementation.
| |
Implementation |
Implementation of interface or class targeted by this attribute to be used by ObjectFactoryT.
|