Remove extra registration of TelemetrySource
This is now provided by hosting.
This commit is contained in:
parent
4d55a6e62d
commit
10ec9144ca
|
|
@ -134,18 +134,6 @@ namespace Microsoft.Framework.DependencyInjection
|
|||
{
|
||||
services.AddOptions();
|
||||
services.AddRouting();
|
||||
|
||||
// Registered as a Source for us, and as a Listener for consumers.
|
||||
if (!services.Any(s => s.ServiceType == typeof(TelemetrySource)))
|
||||
{
|
||||
var source = new TelemetryListener("Microsoft.AspNet");
|
||||
services.AddInstance<TelemetrySource>(source);
|
||||
|
||||
if (!services.Any(s => s.ServiceType == typeof(TelemetryListener)))
|
||||
{
|
||||
services.AddInstance<TelemetryListener>(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue