public AccountService( IOptionsSnapshot <IdentityServerConfiguration> identityServerCommonOptions, [NotNull] IHttpContextAccessor contextAccessor, [NotNull] IUniApiClient uniApiClient, [NotNull] IIdentityServerInteractionService interaction ) { _identityServerCommonOptions = identityServerCommonOptions?.Value?.Common ?? throw new ArgumentNullException(nameof(identityServerCommonOptions)); _contextAccessor = contextAccessor ?? throw new ArgumentNullException(nameof(contextAccessor)); _uniApiClient = uniApiClient ?? throw new ArgumentNullException(nameof(uniApiClient)); _interaction = interaction ?? throw new ArgumentNullException(nameof(interaction)); }
public AccountController( IAccountService accountService, IIdentityServerInteractionService interaction, IEventService events, IOptionsSnapshot <IdentityServerConfiguration> identityServerCommonOptions ) { _accountService = accountService ?? throw new ArgumentNullException(nameof(accountService)); _interaction = interaction ?? throw new ArgumentNullException(nameof(interaction)); _events = events ?? throw new ArgumentNullException(nameof(events)); _identityServerCommonOptions = identityServerCommonOptions?.Value?.Common ?? throw new ArgumentNullException(nameof(identityServerCommonOptions)); }
public ConsentService( IIdentityServerInteractionService interaction, IClientStore clientStore, IResourceStore resourceStore, ILogger <ConsentService> logger, IOptionsSnapshot <IdentityServerConfiguration> identityServerCommonOptions ) { _interaction = interaction ?? throw new ArgumentNullException(nameof(interaction)); _clientStore = clientStore ?? throw new ArgumentNullException(nameof(clientStore)); _resourceStore = resourceStore ?? throw new ArgumentNullException(nameof(resourceStore)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _identityServerCommonOptions = identityServerCommonOptions?.Value?.Common ?? throw new ArgumentNullException(nameof(identityServerCommonOptions)); }