Update service registration to match latest guidance (#32211)
parent
96a7617776
commit
e377ac0c30
|
@ -680,7 +680,7 @@ public class CookieHandler : DelegatingHandler
|
|||
The `CookieHandler` is registered in the `Program` file:
|
||||
|
||||
```csharp
|
||||
builder.Services.AddScoped<CookieHandler>();
|
||||
builder.Services.AddTransient<CookieHandler>();
|
||||
```
|
||||
|
||||
The message handler is added to any preconfigured <xref:System.Net.Http.HttpClient> that requires cookie authentication:
|
||||
|
|
Loading…
Reference in New Issue