1 implementation of TryAddScheme
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
137
public virtual bool
TryAddScheme
(AuthenticationScheme scheme)
11 references to TryAddScheme
Microsoft.AspNetCore.Authentication.Core.Test (11)
AuthenticationSchemeProviderTests.cs (11)
166
Assert.True(o.
TryAddScheme
(new AuthenticationScheme("signin", "whatever", typeof(Handler))));
167
Assert.True(o.
TryAddScheme
(new AuthenticationScheme("signin2", "whatever", typeof(Handler))));
168
Assert.False(o.
TryAddScheme
(new AuthenticationScheme("signin", "whatever", typeof(Handler))));
169
Assert.True(o.
TryAddScheme
(new AuthenticationScheme("signin3", "whatever", typeof(Handler))));
170
Assert.False(o.
TryAddScheme
(new AuthenticationScheme("signin2", "whatever", typeof(Handler))));
172
Assert.True(o.
TryAddScheme
(new AuthenticationScheme("signin2", "whatever", typeof(Handler))));
211
Assert.True(provider.
TryAddScheme
(scheme1));
215
Assert.False(provider.
TryAddScheme
(scheme1));
219
Assert.True(provider.
TryAddScheme
(scheme2));
223
Assert.True(provider.
TryAddScheme
(scheme3));
243
Assert.True(provider.
TryAddScheme
(scheme2));