Skip to content

Commit a5766e2

Browse files
authored
Remove logger step (#34349)
1 parent 9bac552 commit a5766e2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

aspnetcore/blazor/security/webassembly/standalone-with-identity/qrcodes-for-authenticator-apps.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,6 @@ At the top of the `CookieAuthenticationStateProvider.cs` file, add a `using` sta
160160
using System.Text.Json.Serialization;
161161
```
162162

163-
Inject an `ILogger<CookieAuthenticationStateProvider>` to log exceptions in the class:
164-
165-
```diff
166-
- public class CookieAuthenticationStateProvider(IHttpClientFactory httpClientFactory)
167-
- : AuthenticationStateProvider, IAccountManagement
168-
+ public class CookieAuthenticationStateProvider(IHttpClientFactory httpClientFactory,
169-
+ ILogger<CookieAuthenticationStateProvider> logger)
170-
+ : AuthenticationStateProvider, IAccountManagement
171-
```
172-
173163
In the <xref:System.Text.Json.JsonSerializerOptions>, add the <xref:System.Text.Json.JsonSerializerOptions.DefaultIgnoreCondition> option set to <xref:System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull?displayProperty=nameWithType>, which avoids serializing null properties:
174164

175165
```diff

0 commit comments

Comments
 (0)