public void Run(IStartupOptions options) { var appServices = options.ApplicationServices; var telemetryListener = appServices.GetRequiredService<DiagnosticListener>(); telemetryListener.SubscribeWithAdapter(appServices.GetRequiredService<WebDiagnosticsInspector>(), IsEnabled); }
public void Run(IStartupOptions options) { if (Startups.Any()) { foreach (var startup in Startups) { startup.Run(options); } } }