Created
April 24, 2021 20:20
-
-
Save manoj-choudhari-git/a04a293f9bba44f24dc46486cdb41459 to your computer and use it in GitHub Desktop.
GetCreatedTimeImplementation to get the time of object creation
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
public class GetCreatedTimeImplementation : ITransientGetCreatedTime, | |
IScopedGetCreatedTime, | |
ISingletonGetCreatedTime | |
{ | |
private readonly DateTime createdOn; | |
public GetCreatedTimeImplementation() | |
{ | |
this.createdOn = DateTime.Now; | |
} | |
public DateTime GetCreatedTime() | |
{ | |
return this.createdOn; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment