Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
All 4 interfaces for demo of dependency injection
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