public ContextService(
     ILogger <ContextService> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
 }
 public IndustryRepository(
     ILogger <IndustryRepository> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
 }
Example #3
0
        public SharePointListDataProvider(GraphSharePointAppService graphSharePointAppService,
                                          IHttpContextAccessor httpContextAccessor, IOptionsMonitor <AppOptions> appOptions, ILogger <SharePointListDataProvider> logger)
        {
            this.httpContextAccessor       = httpContextAccessor;
            this.graphSharePointAppService = graphSharePointAppService;
            this.logger = logger;

            siteList = new SiteList
            {
                SiteId = appOptions.CurrentValue.ProposalManagementRootSiteId,
                ListId = "Audit"
            };
        }
Example #4
0
 public NotificationRepository(
     ILogger <NotificationRepository> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService,
     GraphUserAppService graphUserAppService,
     IUserContext userContext) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
     Guard.Against.Null(userContext, nameof(userContext));
     _graphSharePointAppService = graphSharePointAppService;
     _graphUserAppService       = graphUserAppService;
     _userContext = userContext;
 }