Esempio n. 1
0
 /// <summary>
 /// Creates an instance of <see cref="ClientsController"/>.
 /// </summary>
 /// <param name="configurationDbContext">Abstraction for the configuration context.</param>
 /// <param name="generalSettings">Applications general settings.</param>
 /// <param name="eventService">Models the event mechanism used to raise events inside the IdentityServer API.</param>
 /// <param name="apiEndpointsOptions">Options for configuring the IdentityServer API feature.</param>
 public ClientsController(
     ExtendedConfigurationDbContext configurationDbContext,
     IOptionsSnapshot <GeneralSettings> generalSettings,
     IEventService eventService,
     IdentityServerApiEndpointsOptions apiEndpointsOptions
     )
 {
     _configurationDbContext = configurationDbContext ?? throw new ArgumentNullException(nameof(configurationDbContext));
     _generalSettings        = generalSettings?.Value ?? throw new ArgumentNullException(nameof(generalSettings));
     _eventService           = eventService ?? throw new ArgumentNullException(nameof(eventService));
     _apiEndpointsOptions    = apiEndpointsOptions ?? throw new ArgumentNullException(nameof(apiEndpointsOptions));
 }
Esempio n. 2
0
 /// <summary>
 /// Creates an instance of <see cref="ResourcesController"/>.
 /// </summary>
 /// <param name="configurationDbContext">Abstraction for the configuration context.</param>
 public ResourcesController(ExtendedConfigurationDbContext configurationDbContext)
 {
     _configurationDbContext = configurationDbContext ?? throw new ArgumentNullException(nameof(configurationDbContext));
 }
 /// <summary>
 /// Creates a new instance of <see cref="DashboardController"/>.
 /// </summary>
 /// <param name="userManager">Provides the APIs for managing user in a persistence store.</param>
 /// <param name="configurationDbContext">Abstraction for the configuration context.</param>
 public DashboardController(ExtendedUserManager <User> userManager, ExtendedConfigurationDbContext configurationDbContext)
 {
     _userManager            = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _configurationDbContext = configurationDbContext ?? throw new ArgumentNullException(nameof(configurationDbContext));
 }