Created
April 30, 2019 12:19
-
-
Save guitarrapc/944b7d4ea9afe7835b1b936c388e3ca2 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 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