1
0
Форкнуть 0

use immoery channel for func tests to increase stability

This commit is contained in:
Cijo Thomas 2019-02-15 15:47:41 -08:00
Родитель ef79495dbc
Коммит 32785040ea
3 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -21,6 +21,7 @@
var builder = new ConfigurationBuilder();
builder.AddApplicationInsightsSettings(instrumentationKey: InProcessServer.IKey, endpointAddress: endpointAddress.ConnectionString, developerMode: true);
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
services.AddApplicationInsightsTelemetry(builder.Build());
}

Просмотреть файл

@ -33,6 +33,7 @@ namespace MVCFramework20.FunctionalTests
applicationInsightsOptions.EndpointAddress = endpointAddress.ConnectionString;
applicationInsightsOptions.InstrumentationKey = InProcessServer.IKey;
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
services.AddApplicationInsightsTelemetry(applicationInsightsOptions);
services.AddMvc();
}

Просмотреть файл

@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using FunctionalTestUtils;
using Microsoft.ApplicationInsights.Channel;
namespace WebApi20.FunctionalTests
{
@ -24,6 +24,7 @@ namespace WebApi20.FunctionalTests
var builder = new ConfigurationBuilder();
builder.AddApplicationInsightsSettings(instrumentationKey: InProcessServer.IKey, endpointAddress: endpointAddress.ConnectionString, developerMode: true);
services.AddSingleton(typeof(ITelemetryChannel), new InMemoryChannel());
services.AddApplicationInsightsTelemetry(builder.Build());
services.AddMvc();