Merge pull request #12 from tparnell8/aspnet46

moah things 2
This commit is contained in:
Tommy Parnell
2015-10-19 19:57:31 -04:00
5 changed files with 14 additions and 5 deletions

View File

@@ -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>

View File

@@ -0,0 +1,7 @@
{
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
"Version": "3.3.1.0",
"GettingStartedDocument": {
"Uri": "http://go.microsoft.com/fwlink/?LinkID=613414"
}
}

View File

@@ -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();

View File

@@ -1,7 +1,5 @@
{
"Data": {
"DefaultConnection": {
"ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=DotNetMashup;Trusted_Connection=True;MultipleActiveResultSets=true"
}
"ApplicationInsights": {
"InstrumentationKey": "fda37cc5-e36e-4171-94ac-f02f9f1771c9"
}
}

View File

@@ -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": {