Example #1
0
 public BackOfficeUserStore(
     IScopeProvider scopeProvider,
     IUserService userService,
     IEntityService entityService,
     IExternalLoginService externalLoginService,
     IOptions <GlobalSettings> globalSettings,
     IUmbracoMapper mapper,
     BackOfficeErrorDescriber describer,
     AppCaches appCaches)
     : this(
         scopeProvider,
         userService,
         entityService,
         StaticServiceProvider.Instance.GetRequiredService <IExternalLoginWithKeyService>(),
         globalSettings,
         mapper,
         describer,
         appCaches)
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BackOfficeUserStore"/> class.
 /// </summary>
 public BackOfficeUserStore(
     IScopeProvider scopeProvider,
     IUserService userService,
     IEntityService entityService,
     IExternalLoginService externalLoginService,
     IOptions <GlobalSettings> globalSettings,
     IUmbracoMapper mapper,
     BackOfficeErrorDescriber describer,
     AppCaches appCaches)
     : base(describer)
 {
     _scopeProvider        = scopeProvider;
     _userService          = userService ?? throw new ArgumentNullException(nameof(userService));
     _entityService        = entityService;
     _externalLoginService = externalLoginService ?? throw new ArgumentNullException(nameof(externalLoginService));
     _globalSettings       = globalSettings.Value;
     _mapper               = mapper;
     _appCaches            = appCaches;
     _userService          = userService;
     _externalLoginService = externalLoginService;
 }