Skip to content

Commit 6af0bd0

Browse files
Merge pull request dotnet-architecture#217 from SychevIgor/AIdeleted
ApplicationInsights deleted from 3 projects.
2 parents 229c250 + 5075d5a commit 6af0bd0

7 files changed

Lines changed: 4 additions & 24 deletions

File tree

src/Services/Location/Locations.API/Locations.API.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<ItemGroup>
1313
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.1.0" />
1414
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="1.2.0" />
15-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
1615
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
1716
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
1817
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />

src/Services/Location/Locations.API/Program.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using System.IO;
62
using Microsoft.AspNetCore.Builder;
73
using Microsoft.AspNetCore.Hosting;
84

@@ -17,7 +13,6 @@ public static void Main(string[] args)
1713
.UseHealthChecks("/hc")
1814
.UseContentRoot(Directory.GetCurrentDirectory())
1915
.UseStartup<Startup>()
20-
.UseApplicationInsights()
2116
.Build();
2217

2318
host.Run();

src/Services/Payment/Payment.API/Payment.API.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
</ItemGroup>
1212
<ItemGroup>
1313
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.1.0" />
14-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
1514
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
1615
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
1716
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />

src/Services/Payment/Payment.API/Program.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using System.IO;
62
using Microsoft.AspNetCore.Builder;
73
using Microsoft.AspNetCore.Hosting;
84

@@ -16,7 +12,6 @@ public static void Main(string[] args)
1612
.UseKestrel()
1713
.UseContentRoot(Directory.GetCurrentDirectory())
1814
.UseStartup<Startup>()
19-
.UseApplicationInsights()
2015
.Build();
2116

2217
host.Run();

src/Web/WebStatus/Program.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Threading.Tasks;
1+
using System.IO;
62
using Microsoft.AspNetCore.Hosting;
73

84
namespace WebStatus
@@ -16,7 +12,6 @@ public static void Main(string[] args)
1612
.UseContentRoot(Directory.GetCurrentDirectory())
1713
.UseIISIntegration()
1814
.UseStartup<Startup>()
19-
.UseApplicationInsights()
2015
.Build();
2116

2217
host.Run();

src/Web/WebStatus/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet
2-
<!DOCTYPE html>
1+
<!DOCTYPE html>
32
<html>
43
<head>
54
<meta charset="utf-8" />
@@ -22,7 +21,6 @@
2221
<meta http-equiv="refresh" content="@ViewBag.RefreshSeconds">
2322
}
2423

25-
@Html.Raw(JavaScriptSnippet.FullScript)
2624
</head>
2725
<body>
2826
<nav class="navbar navbar-inverse navbar-fixed-top">

src/Web/WebStatus/WebStatus.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
1312
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
1413
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
1514
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />

0 commit comments

Comments
 (0)