Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created April 30, 2019 12:19
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 guitarrapc/944b7d4ea9afe7835b1b936c388e3ca2 to your computer and use it in GitHub Desktop.
Save guitarrapc/944b7d4ea9afe7835b1b936c388e3ca2 to your computer and use it in GitHub Desktop.
public class Startup
{
private IHostingEnvironment _hostingEnvironment;
public Startup(IConfiguration configuration, IHostingEnvironment env)
{
Configuration = configuration;
_hostingEnvironment = env;
}
// Omit
public void ConfigureServices(IServiceCollection services)
{
// inject git version
services.AddSingleton<IAppVersionService, AppVersionService>();
}
// Omit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment