2016-06-20 3 views

Antwort

7

Sie müssen "Microsoft.ApplicationInsights.AspNetCore": "1.0.0-rc2-final" auf Ihre project.json und diese zu Ihrem Startup Klasse hinzuzufügen:

public void ConfigureServices(IServiceCollection services) 
{ 
    ... 
    // Add framework services. 
    services.AddApplicationInsightsTelemetry(Configuration); 
    ... 
} 

public void Configure(IApplicationBuilder app) 
{ 
     ... 
     app.UseApplicationInsightsRequestTelemetry(); 
     app.UseApplicationInsightsExceptionTelemetry(); 

     ... 
     app.UseMvc(); 
} 
+0

Was "localizationOptions" hier ist? –

+0

Es ist 'RequestLocalizationOptions', aber nicht relevant für die Frage. Ich werde es entfernen. – Tseng

Verwandte Themen