Skip to content

Commit

Permalink
Merge pull request #136 from martincostello/Tidy-Up-Dependencies
Browse files Browse the repository at this point in the history
Tidy up dependencies
  • Loading branch information
martincostello authored Aug 19, 2017
2 parents 272549e + c6fb65b commit 9313c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/LondonTravel.Site/LondonTravel.Site.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<EmbeddedResource Update="SiteResources.resx" Generator="" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.4.337" />
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.1.2" />
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.1.2" />
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="2.0.0" />
Expand All @@ -41,9 +40,8 @@
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="2.0.7" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="NodaTime" Version="2.2.0" />
<PackageReference Include="Polly" Version="5.3.1" />
<PackageReference Include="Serilog" Version="2.5.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="1.4.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="2.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="2.4.0" />
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="2.2.1" />
<PackageReference Include="Serilog.Sinks.Literate" Version="3.0.0" />
Expand Down
4 changes: 1 addition & 3 deletions src/LondonTravel.Site/StartupBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ public void Configure(
ILoggerFactory loggerFactory,
IOptionsSnapshot<SiteOptions> options)
{
loggerFactory.AddSerilog();
appLifetime.ApplicationStopped.Register(Log.CloseAndFlush);

if (environment.IsDevelopment())
{
loggerFactory.AddDebug();
Expand Down Expand Up @@ -168,6 +165,7 @@ public void Configure(
/// </returns>
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddLogging((p) => p.AddSerilog(dispose: true));
services.AddApplicationInsightsTelemetry(Configuration);

services.AddOptions();
Expand Down

0 comments on commit 9313c3b

Please sign in to comment.