Skip to content

Commit

Permalink
Merge pull request #40 from BertCotton/BC.ApplicationIsights
Browse files Browse the repository at this point in the history
Adding Application Isights
  • Loading branch information
BertCotton authored Aug 7, 2017
2 parents 79c1a4f + e07b001 commit d525fe4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
"Version": "8.6.404.2",
"GettingStartedDocument": {
"Uri": "https://go.microsoft.com/fwlink/?LinkID=798432"
}
}
1 change: 1 addition & 0 deletions src/TfsAdvanced/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class Program
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseApplicationInsights()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
Expand Down
5 changes: 5 additions & 0 deletions src/TfsAdvanced/Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

<ItemGroup>
<PackageReference Include="Hangfire" Version="1.6.12" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.2" />
Expand Down Expand Up @@ -71,4 +72,8 @@
</Reference>
</ItemGroup>

<ItemGroup>
<WCFMetadata Include="Connected Services" />
</ItemGroup>

</Project>
53 changes: 26 additions & 27 deletions src/TfsAdvanced/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Verbose",
"System": "Information",
"Microsoft": "Information"
}
},

"AppSettings": {
"BaseAddress": "",
"Projects": [ ],
"Security": {
"Username": "",
"Password": ""
},
"Authorization": {
"AppId": "",
"AppSecret": "",
"State": "User",
"RedirectURI": "/data/Login/LoginAuth",
"ClientId": "",
"ClientSecret": "",
"TenantId": ""
}
}
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Verbose",
"System": "Information",
"Microsoft": "Information"
}
},
"AppSettings": {
"BaseAddress": "",
"Projects": [],
"Security": {
"Username": "",
"Password": ""
},
"Authorization": {
"AppId": "",
"AppSecret": "",
"State": "User",
"RedirectURI": "/data/Login/LoginAuth",
"ClientId": "",
"ClientSecret": "",
"TenantId": ""
}
}
}

0 comments on commit d525fe4

Please sign in to comment.