1 instantiation of SimpleOptions
DynamicSchemes (1)
Controllers\AuthController.cs (1)
41
_optionsCache.TryAdd(scheme, new
SimpleOptions
{ DisplayMessage = optionsMessage });
6 references to SimpleOptions
DynamicSchemes (6)
Controllers\AuthController.cs (2)
15
private readonly IOptionsMonitorCache<
SimpleOptions
> _optionsCache;
17
public AuthController(IAuthenticationSchemeProvider schemeProvider, IOptionsMonitorCache<
SimpleOptions
> optionsCache)
SimpleAuthHandler.cs (2)
15
public class SimpleAuthHandler : AuthenticationHandler<
SimpleOptions
>
17
public SimpleAuthHandler(IOptionsMonitor<
SimpleOptions
> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder)
Startup.cs (2)
30
.AddScheme<
SimpleOptions
, SimpleAuthHandler>("fromStartup1", o => o.DisplayMessage = "I am from startup..")
31
.AddScheme<
SimpleOptions
, SimpleAuthHandler>("fromStartup2", o => o.DisplayMessage = "Me too!");