Created
April 24, 2021 20:22
-
-
Save manoj-choudhari-git/53aa76953abec191590614b1e5eba9bc to your computer and use it in GitHub Desktop.
All 4 interfaces for demo of dependency injection
This file contains 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
interface IGetCreatedTime | |
{ | |
DateTime GetCreatedTime(); | |
} | |
interface ISingletonGetCreatedTime : IGetCreatedTime | |
{ | |
} | |
interface IScopedGetCreatedTime : IGetCreatedTime | |
{ | |
} | |
interface ITransientGetCreatedTime : IGetCreatedTime | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment