Last active
January 11, 2021 13:56
-
-
Save mattbrailsford/5fb888106a84bd128289701be0874872 to your computer and use it in GitHub Desktop.
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
public class CourceService | |
{ | |
internal CourceService(siteId, apiKey) | |
{ | |
// TODO: Handle params... | |
} | |
} | |
// The CourseServiceFactory should be registered with the DI container | |
// and should be registered as a singleton | |
public class CourseServiceFactory | |
{ | |
public CourceService Create(string siteId, string apiKey) | |
{ | |
return new CourceService(siteId, apiKey); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment