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));
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 7
0
 public ODataCrawler(IODataClientFactory clientFactory)
 {
     this.clientFactory = clientFactory;
 }
Esempio n. 8
0
 public ODataProvider([NotNull] ApplicationContext appContext, IODataClientFactory odataClientFactory)
     : base(appContext, ODataConstants.CreateProviderMetadata())
 {
     _odataClientFactory = odataClientFactory;
 }
Esempio n. 9
0
 public EssContextFactory(IODataClientFactory odataClientFactory, IOptions <DynamicsOptions> dynamicsOptions)
 {
     this.odataClientFactory = odataClientFactory;
     this.dynamicsOptions    = dynamicsOptions.Value;
 }