Created
June 18, 2018 08:51
-
-
Save m-malkowski/58ac54cfbedad83e2712bc446281aa70 to your computer and use it in GitHub Desktop.
Working with built-in dependency injection of ASP .NET Core - Attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] | |
| public class InjectableTransientAttribute : Attribute | |
| { | |
| } | |
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] | |
| public class InjectableScopedAttribute : Attribute | |
| { | |
| } | |
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] | |
| public class InjectableSingletonAttribute : Attribute | |
| { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment