Skip to content

Commit e2351d3

Browse files
committed
Remove Public API
1 parent 8d9a5cc commit e2351d3

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#nullable enable
2-
override Microsoft.AspNetCore.Components.WebAssembly.Authentication.AuthorizationMessageHandler.Dispose(bool disposing) -> void
32
~Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions.AdditionalProviderParameters.get -> System.Collections.Generic.IDictionary<string, string>
43
~Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>.RemoteAuthenticationService(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory) -> void
54
*REMOVED*~Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>.RemoteAuthenticationService(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory) -> void

src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AuthorizationMessageHandler.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Collections.Generic;
64
using System.Linq;
75
using System.Net.Http;
86
using System.Net.Http.Headers;
9-
using System.Threading;
10-
using System.Threading.Tasks;
117
using Microsoft.AspNetCore.Components.Authorization;
128

139
namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication
@@ -17,7 +13,7 @@ namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication
1713
/// Access tokens will only be added when the request URI is within one of the base addresses configured using
1814
/// <see cref="ConfigureHandler(IEnumerable{string}, IEnumerable{string}, string)"/>.
1915
/// </summary>
20-
public class AuthorizationMessageHandler : DelegatingHandler
16+
public class AuthorizationMessageHandler : DelegatingHandler, IDisposable
2117
{
2218
private readonly IAccessTokenProvider _provider;
2319
private readonly NavigationManager _navigation;
@@ -130,15 +126,14 @@ public AuthorizationMessageHandler ConfigureHandler(
130126
return this;
131127
}
132128

133-
/// <inheritdoc />
134-
protected override void Dispose(bool disposing)
129+
130+
void IDisposable.Dispose()
135131
{
136132
if (_provider is AuthenticationStateProvider authStateProvider)
137133
{
138134
authStateProvider.AuthenticationStateChanged -= _authenticationStateChangedHandler;
139135
}
140-
141-
base.Dispose(disposing);
136+
Dispose(disposing: true);
142137
}
143138
}
144139
}

0 commit comments

Comments
 (0)