Skip to content

Commit ec1389e

Browse files
Update SentryMauiAppBuilderExtensions.cs
1 parent 77ecd1b commit ec1389e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public static MauiAppBuilder UseSentry(this MauiAppBuilder builder,
4444
{
4545
var services = builder.Services;
4646

47-
var section = builder.Configuration.GetSection("Sentry");
48-
services.AddSingleton<IConfigureOptions<SentryMauiOptions>>(_ => new SentryMauiOptionsSetup(section));
49-
47+
services.AddSingleton<IConfigureOptions<SentryMauiOptions>, SentryMauiOptionsSetup>();
5048
if (configureOptions != null)
5149
{
5250
services.Configure(configureOptions);

0 commit comments

Comments
 (0)