public GraphSharePointBaseService( ILogger <GraphSharePointBaseService> logger, IOptionsMonitor <AppOptions> appOptions, IGraphClientContext graphClientContext) : base(logger, appOptions) { Guard.Against.Null(graphClientContext, nameof(graphClientContext)); _graphClientContext = graphClientContext; }
public GraphUserBaseService( ILogger <GraphUserBaseService> logger, IOptions <AppOptions> appOptions, IGraphClientContext graphClientContext, IHostingEnvironment hostingEnvironment) : base(logger, appOptions) { Guard.Against.Null(graphClientContext, nameof(graphClientContext)); Guard.Against.Null(hostingEnvironment, nameof(hostingEnvironment)); _graphClientContext = graphClientContext; _hostingEnvironment = hostingEnvironment; }
public GraphTeamsBaseService( ILogger <GraphTeamsBaseService> logger, IOptionsMonitor <AppOptions> appOptions, IGraphClientContext graphClientContext, IUserContext userContext, IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions) { Guard.Against.Null(graphClientContext, nameof(graphClientContext)); _graphClientContext = graphClientContext; _userContext = userContext; _azureKeyVaultService = azureKeyVaultService; }
public GraphBaseService( ILogger <T> logger, IOptions <AppOptions> appOptions, IGraphAuthProvider authProvider, IUserContext userContext, IGraphClientContext graphClientContext) : base(logger, appOptions) { Guard.Against.Null(authProvider, nameof(authProvider)); Guard.Against.Null(userContext, nameof(userContext)); Guard.Against.Null(graphClientContext, nameof(graphClientContext)); _authProvider = authProvider; _userContext = userContext; // Set current context to User by default (always default to least privilege) _currentClientContext = GraphClientContext.User; }