@@ -14,6 +14,7 @@
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<DevelopmentServerPort>59713</DevelopmentServerPort>
|
||||
<ApplicationInsightsResourceId>/subscriptions/6332a4fe-3d5b-4857-9206-6dedd406f451/resourcegroups/Default-ApplicationInsights-CentralUS/providers/microsoft.insights/components/DotNetMashup.Web</ApplicationInsightsResourceId>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
|
||||
"Version": "3.3.1.0",
|
||||
"GettingStartedDocument": {
|
||||
"Uri": "http://go.microsoft.com/fwlink/?LinkID=613414"
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@ namespace DotNetMashup.Web
|
||||
{
|
||||
config = new ConfigurationBuilder()
|
||||
.AddEnvironmentVariables()
|
||||
.AddApplicationInsightsSettings(instrumentationKey: "fda37cc5-e36e-4171-94ac-f02f9f1771c9")
|
||||
.Build();
|
||||
_feedData = JsonConvert.DeserializeObject<IEnumerable<BlogMetaData>>(File.ReadAllText(Path.Combine(appEnv.ApplicationBasePath, "blogfeed.json")));
|
||||
}
|
||||
@@ -33,6 +34,7 @@ namespace DotNetMashup.Web
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddInstance(config);
|
||||
services.AddApplicationInsightsTelemetry(config);
|
||||
services.AddSingleton<ISiteSetting>(prov =>
|
||||
{
|
||||
return new SiteSettings();
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
{
|
||||
"Data": {
|
||||
"DefaultConnection": {
|
||||
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=DotNetMashup;Trusted_Connection=True;MultipleActiveResultSets=true"
|
||||
}
|
||||
"ApplicationInsights": {
|
||||
"InstrumentationKey": "fda37cc5-e36e-4171-94ac-f02f9f1771c9"
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,8 @@
|
||||
"Newtonsoft.Json": "7.0.1",
|
||||
"TweetinviAPI": "0.9.9.8",
|
||||
"Octokit": "0.16.0",
|
||||
"CommonMark.NET": "0.9.1"
|
||||
"CommonMark.NET": "0.9.1",
|
||||
"Microsoft.ApplicationInsights.AspNet": "1.0.0-beta8"
|
||||
},
|
||||
|
||||
"commands": {
|
||||
|
||||
Reference in New Issue
Block a user