public Handler(IUserSearchService userSearchService, IUserManagementService userManagementService, ProjectConfigurationCollection projects, ILogger <Handler> logger) : base(logger) { _userSearchService = userSearchService ?? throw new ArgumentNullException(nameof(userSearchService)); _userManagementService = userManagementService ?? throw new ArgumentNullException(nameof(userManagementService)); _projects = projects ?? throw new ArgumentNullException(nameof(projects)); }
/// <summary>Initializes a new instance of the <see cref="AccessTokenLoader" /> class.</summary> /// <param name="projects">The projects.</param> /// <param name="samlAuthenticator">The saml authenticator.</param> /// <param name="oAuthClientFactory">The o authentication client factory.</param> /// <param name="serviceProvider">The service provider.</param> /// <exception cref="ArgumentNullException"><paramref name="projects"/> /// or /// <paramref name="samlAuthenticator"/> /// or /// <paramref name="oAuthClientFactory"/> /// or /// <paramref name="serviceProvider"/> is null. /// </exception> public AccessTokenLoader( ProjectConfigurationCollection projects, ISamlAuthenticator samlAuthenticator, IOAuthClientFactory oAuthClientFactory, IServiceProvider serviceProvider) { _projects = projects ?? throw new ArgumentNullException(nameof(projects)); _samlAuthenticator = samlAuthenticator ?? throw new ArgumentNullException(nameof(samlAuthenticator)); _oAuthClientFactory = oAuthClientFactory ?? throw new ArgumentNullException(nameof(oAuthClientFactory)); _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider)); }
public UserManagementService( ProjectConfigurationCollection projects, ILogger <UserManagementService> logger, IODataClientFactory oDataClientFactory, IUserSearchService userSearchService, ISamlAuthenticator samlAuthenticator) { _projects = projects ?? throw new ArgumentNullException(nameof(projects)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _oDataClientFactory = oDataClientFactory ?? throw new ArgumentNullException(nameof(oDataClientFactory)); _userSearchService = userSearchService ?? throw new ArgumentNullException(nameof(userSearchService)); _samlAuthenticator = samlAuthenticator ?? throw new ArgumentNullException(nameof(samlAuthenticator)); }
public UserManagementService( ProjectConfigurationCollection projects, ILogger <UserManagementService> logger, IODataClientFactory oDataClientFactory, IUserSearchService userSearchService, ILogger <DynamicsResourceUserManagementService> dynamicsResourceUserManagementService, ILogger <SharePointResourceUserManagementService> sharePointResourceUserManagementServiceLogger) { _projects = projects ?? throw new ArgumentNullException(nameof(projects)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _oDataClientFactory = oDataClientFactory ?? throw new ArgumentNullException(nameof(oDataClientFactory)); _userSearchService = userSearchService ?? throw new ArgumentNullException(nameof(userSearchService)); _dynamicsResourceUserManagementService = dynamicsResourceUserManagementService ?? throw new ArgumentNullException(nameof(dynamicsResourceUserManagementService)); _sharePointResourceUserManagementServiceLogger = sharePointResourceUserManagementServiceLogger ?? throw new ArgumentNullException(nameof(sharePointResourceUserManagementServiceLogger)); }
public DefaultODataClientFactory(IHttpClientFactory httpClientFactory, ProjectConfigurationCollection projects) { _httpClientFactory = httpClientFactory ?? throw new System.ArgumentNullException(nameof(httpClientFactory)); _projects = projects ?? throw new System.ArgumentNullException(nameof(projects)); }
public Handler(ProjectConfigurationCollection projects) { _projects = projects ?? throw new ArgumentNullException(nameof(projects)); }