diff --git a/src/TfsAdvanced/Connected Services/Application Insights/ConnectedService.json b/src/TfsAdvanced/Connected Services/Application Insights/ConnectedService.json new file mode 100644 index 0000000..c697876 --- /dev/null +++ b/src/TfsAdvanced/Connected Services/Application Insights/ConnectedService.json @@ -0,0 +1,7 @@ +{ + "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider", + "Version": "8.6.404.2", + "GettingStartedDocument": { + "Uri": "https://go.microsoft.com/fwlink/?LinkID=798432" + } +} \ No newline at end of file diff --git a/src/TfsAdvanced/Program.cs b/src/TfsAdvanced/Program.cs index 5c667ef..d3e9273 100644 --- a/src/TfsAdvanced/Program.cs +++ b/src/TfsAdvanced/Program.cs @@ -8,6 +8,7 @@ public class Program public static void Main(string[] args) { var host = new WebHostBuilder() + .UseApplicationInsights() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() diff --git a/src/TfsAdvanced/Web.csproj b/src/TfsAdvanced/Web.csproj index 730e14b..3426a76 100644 --- a/src/TfsAdvanced/Web.csproj +++ b/src/TfsAdvanced/Web.csproj @@ -28,6 +28,7 @@ + @@ -71,4 +72,8 @@ + + + + diff --git a/src/TfsAdvanced/appsettings.json b/src/TfsAdvanced/appsettings.json index 6e730be..0e59a40 100644 --- a/src/TfsAdvanced/appsettings.json +++ b/src/TfsAdvanced/appsettings.json @@ -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": "" + } + } } \ No newline at end of file