Skip to content

Commit

Permalink
Add Options to the default set of services
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jan 5, 2016
1 parent e4e4003 commit d8a2052
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Hosting/WebApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private IServiceCollection BuildHostingServices()
services.AddTransient<IApplicationBuilderFactory, ApplicationBuilderFactory>();
services.AddTransient<IHttpContextFactory, HttpContextFactory>();
services.AddLogging();
services.AddOptions();

var diagnosticSource = new DiagnosticListener("Microsoft.AspNet");
services.AddSingleton<DiagnosticSource>(diagnosticSource);
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Hosting/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"Microsoft.AspNet.Hosting.Server.Abstractions": "1.0.0-*",
"Microsoft.AspNet.Http": "1.0.0-*",
"Microsoft.AspNet.Http.Extensions": "1.0.0-*",
"Microsoft.Extensions.Options": "1.0.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
"Microsoft.Extensions.Configuration.CommandLine": "1.0.0-*",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-*",
Expand Down

0 comments on commit d8a2052

Please sign in to comment.