Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CodeBase.CompositionRoot.Helpers
- {
- [AttributeUsage(AttributeTargets.Interface, AllowMultiple = false)]
- public class VContainerAutoRegistrationAttribute : Attribute
- {
- public TargetLifetime Lifetime { get; set; } = TargetLifetime.Transient;
- public RegisterType RegisterAs { get; set; } = RegisterType.ImplementedInterfaces;
- }
- public enum TargetLifetime
- {
- Transient,
- Scoped,
- Singleton
- }
- public enum RegisterType
- {
- Self,
- ImplementedInterfaces,
- Both
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment