From 7377adc2142076836706d9d19dd371e3a0f189e6 Mon Sep 17 00:00:00 2001 From: Daniel Hindrikes Date: Tue, 29 Oct 2024 14:48:00 +0100 Subject: [PATCH] Specific maui version. --- TinyInsights.TestApp/MauiProgram.cs | 12 +----------- TinyInsights/InsightsExtension.cs | 4 ++-- TinyInsights/TinyInsights.csproj | 4 ++-- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/TinyInsights.TestApp/MauiProgram.cs b/TinyInsights.TestApp/MauiProgram.cs index ba7c68e..683bdbb 100644 --- a/TinyInsights.TestApp/MauiProgram.cs +++ b/TinyInsights.TestApp/MauiProgram.cs @@ -14,17 +14,7 @@ public static MauiApp CreateMauiApp() fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); }) - .UseTinyInsights("InstrumentationKey=8b51208f-7926-4b7b-9867-16989206b950;IngestionEndpoint=https://swedencentral-0.in.applicationinsights.azure.com/;ApplicationId=0c04d3a0-9ee2-41a5-996e-526552dc730f", - (provider, serviceProvider) => - { - provider.IsTrackErrorsEnabled = true; - provider.IsTrackCrashesEnabled = true; - provider.IsTrackPageViewsEnabled = true; - provider.IsAutoTrackPageViewsEnabled = true; - provider.IsTrackEventsEnabled = true; - provider.IsTrackDependencyEnabled = true; - provider.IsAutoTrackPageViewsEnabled = true; - }); + .UseTinyInsights("InstrumentationKey=8b51208f-7926-4b7b-9867-16989206b950;IngestionEndpoint=https://swedencentral-0.in.applicationinsights.azure.com/;ApplicationId=0c04d3a0-9ee2-41a5-996e-526552dc730f"); builder.Services.AddSingleton((serviceProvider) => { diff --git a/TinyInsights/InsightsExtension.cs b/TinyInsights/InsightsExtension.cs index f82f137..686227a 100644 --- a/TinyInsights/InsightsExtension.cs +++ b/TinyInsights/InsightsExtension.cs @@ -11,9 +11,9 @@ public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder) return appBuilder; } - public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string? applicationInsightsConnectionString = null, Action? configureProvider = null) + public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string applicationInsightsConnectionString) { - return UseTinyInsights(appBuilder, applicationInsightsConnectionString, null, configureProvider); + return UseTinyInsights(appBuilder, applicationInsightsConnectionString, null); } public static MauiAppBuilder UseTinyInsights(this MauiAppBuilder appBuilder, string? applicationInsightsConnectionString = null, Action? configureProvider = null) diff --git a/TinyInsights/TinyInsights.csproj b/TinyInsights/TinyInsights.csproj index 33b8d81..569a435 100644 --- a/TinyInsights/TinyInsights.csproj +++ b/TinyInsights/TinyInsights.csproj @@ -27,8 +27,8 @@ - - + +