Created
November 23, 2020 15:08
-
-
Save xximjasonxx/e70780ca91b564258431d728621cc3ef to your computer and use it in GitHub Desktop.
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 ContextServiceFactory | |
{ | |
private ContextService _currentContext; | |
public ContextService GetCurrentContext() | |
{ | |
if (_currentContext == null) | |
_currentContext = new ContextService(); | |
return _currentContext; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment