Skip to content

Instantly share code, notes, and snippets.

@mattbrailsford
Last active January 11, 2021 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbrailsford/5fb888106a84bd128289701be0874872 to your computer and use it in GitHub Desktop.
Save mattbrailsford/5fb888106a84bd128289701be0874872 to your computer and use it in GitHub Desktop.
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