diff --git a/platform-includes/enriching-events/set-user/dotnet.mdx b/platform-includes/enriching-events/set-user/dotnet.mdx index fa1fcb9d52e32..4623d8acc4aa7 100644 --- a/platform-includes/enriching-events/set-user/dotnet.mdx +++ b/platform-includes/enriching-events/set-user/dotnet.mdx @@ -3,7 +3,7 @@ using Sentry; SentrySdk.ConfigureScope(scope => { - scope.User = new User + scope.User = new SentryUser { Email = "john.doe@example.com" }; @@ -15,6 +15,6 @@ open Sentry SentrySdk.ConfigureScope( fun scope -> - scope.User <- User(Email = "john.doe@example.com") + scope.User <- SentryUser(Email = "john.doe@example.com") ) ``` diff --git a/platform-includes/enriching-events/unset-user/dotnet.mdx b/platform-includes/enriching-events/unset-user/dotnet.mdx index 115672403fa17..cb6d3ba38fe7f 100644 --- a/platform-includes/enriching-events/unset-user/dotnet.mdx +++ b/platform-includes/enriching-events/unset-user/dotnet.mdx @@ -3,7 +3,7 @@ using Sentry; SentrySdk.ConfigureScope(scope => { - scope.User = null; + scope.User = new SentryUser(); }); ``` @@ -12,6 +12,6 @@ open Sentry SentrySdk.ConfigureScope( fun scope -> - scope.User <- null + scope.User <- SentryUser() ) ```