public DynamicsResourceUserManagementService(ProjectConfiguration project, ProjectResource projectResource, IODataClientFactory factory, IUserSearchService userSearchService, ILogger logger) : base(project, projectResource, logger) { _factory = factory ?? throw new ArgumentNullException(nameof(factory)); _userSearchService = userSearchService ?? throw new ArgumentNullException(nameof(userSearchService)); }
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)); }
/// <summary> /// Creates and configures an <see cref="DataServiceContext"/> instance using the configuration that corresponds /// to the logical name specified by <see cref="ODataClientOptions.DefaultName"/> with the specified <paramref name="serviceRoot" /> /// </summary> /// <typeparam name="T">The concrate OData client type generated from OData Client code generator.</typeparam> /// <param name="factory">The factory used to create the odata client.</param> /// <param name="serviceRoot">An absolute URI that identifies the root of a data service.</param> /// <returns>A new <see cref="DataServiceContext"/> instance.</returns> /// <remarks> /// <para> /// Each call to <see cref="IODataClientFactory.CreateClient{T}(Uri, string)"/> is guaranteed to return a new <see cref="DataServiceContext"/> /// instance. /// </para> /// <para> /// Callers are also free to mutate the returned <see cref="DataServiceContext"/> instance's public properties /// as desired. /// </para> /// </remarks> public static T CreateClient <T>(this IODataClientFactory factory, Uri serviceRoot) where T : DataServiceContext { return(factory.CreateClient <T>(serviceRoot, ODataClientOptions.DefaultName)); }
public ODataServiceContextFactory(IODataClientFactory clientFactory, IConfiguration configuration) { this.clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory)); this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }
public VerificationController(VerificationCounter counter, IODataClientFactory odataClientFactory) { this.factory = odataClientFactory; this.counter = counter; }
public ODataCrawler(IODataClientFactory clientFactory) { this.clientFactory = clientFactory; }
public ODataProvider([NotNull] ApplicationContext appContext, IODataClientFactory odataClientFactory) : base(appContext, ODataConstants.CreateProviderMetadata()) { _odataClientFactory = odataClientFactory; }
public EssContextFactory(IODataClientFactory odataClientFactory, IOptions <DynamicsOptions> dynamicsOptions) { this.odataClientFactory = odataClientFactory; this.dynamicsOptions = dynamicsOptions.Value; }