Ejemplo n.º 1
0
        public BitLevelManager(IUserAuthorization authorizer, IUserContext userContext, IBitLevelQuery query,
                               IPersistenceCommands pcommand, IUserNotifier notifier, IBlockChainService blockChain,
                               ISettingsManager settingsManager, IReferralQuery refQuery,
                               //IEmailPush emailService,
                               IBackgroundOperationScheduler backgroundProcessor,
                               IAppUrlProvider urlProvider)
        {
            ThrowNullArguments(() => userContext,
                               () => query,
                               () => pcommand,
                               () => notifier,
                               () => blockChain,
                               () => settingsManager,
                               () => refQuery,
                               //() => emailService,
                               () => backgroundProcessor,
                               () => urlProvider);

            _query           = query;
            _pcommand        = pcommand;
            _authorizer      = authorizer;
            _notifier        = notifier;
            _blockChain      = blockChain;
            _refQuery        = refQuery;
            _settingsManager = settingsManager;
            //_emailService = emailService;
            _backgroundProcessor = backgroundProcessor;
            _urlProvider         = urlProvider;

            UserContext = userContext;
        }
Ejemplo n.º 2
0
 public AccountEmailVerifySender(
     IEmailSender emailSender,
     ITemplateRenderer templateRenderer,
     IStringLocalizer <AccountResource> stringLocalizer,
     IAppUrlProvider appUrlProvider,
     ICurrentTenant currentTenant)
     : base(emailSender, templateRenderer, stringLocalizer, appUrlProvider, currentTenant)
 {
 }
 public AccountMailer(
     IEmailSender emailSender,
     ITemplateRenderer templateRenderer,
     IStringLocalizer <EmailingResource> stringLocalizer,
     IAppUrlProvider appUrlProvider,
     ICurrentTenant currentTenant)
 {
     EmailSender      = emailSender;
     StringLocalizer  = stringLocalizer;
     AppUrlProvider   = appUrlProvider;
     CurrentTenant    = currentTenant;
     TemplateRenderer = templateRenderer;
 }
Ejemplo n.º 4
0
        public FileSystemBlobStore(IAppUrlProvider urlProvider, IUserContext userContextService)
        {
            UrlProvider = urlProvider;
            UserContext = userContextService;

            //create the root dir
            var dinfo = new DirectoryInfo(RootDirecotry);

            if (!dinfo.Exists)
            {
                dinfo.Create();
            }
        }
Ejemplo n.º 5
0
        public AccountManager(ICredentialAuthentication credentialAuthentication,
                              IBackgroundOperationScheduler backgroundProcessor,
                              IContextVerifier contextVerifier,
                              ISettingsManager settingsManager,
                              IUserAuthorization accessManager,
                              IPersistenceCommands pcommands,
                              IAppUrlProvider apiProvider,
                              IReferralManager refManager,
                              IUserContext userContext,
                              IUserNotifier notifier,
                              //IEmailPush messagePush,
                              IBlobStore blobStore,
                              IAccountQuery query)
        {
            ThrowNullArguments(() => userContext,
                               () => query,
                               () => credentialAuthentication,
                               () => backgroundProcessor,
                               () => contextVerifier,
                               () => accessManager,
                               () => blobStore,
                               //() => messagePush,
                               () => pcommands,
                               () => settingsManager,
                               () => apiProvider,
                               () => refManager,
                               () => notifier);

            UserContext      = userContext;
            _query           = query;
            _credentialAuth  = credentialAuthentication;
            _contextVerifier = contextVerifier;
            _authorizer      = accessManager;
            _blobStore       = blobStore;
            //_messagePush = messagePush;
            _settingsManager     = settingsManager;
            _apiProvider         = apiProvider;
            _refManager          = refManager;
            _pcommand            = pcommands;
            _notifier            = notifier;
            _backgroundProcessor = backgroundProcessor;
        }
Ejemplo n.º 6
0
        public UserNotifier(IUserContext userContext,
                            IUserNotifierQuery dataContext,
                            ISettingsManager settingsManager,
                            IUserAuthorization accessManager,
                            IPersistenceCommands pcommands,
                            IAppUrlProvider apiProvider)
        {
            ThrowNullArguments(() => userContext,
                               () => dataContext,
                               () => accessManager,
                               () => pcommands,
                               () => settingsManager,
                               () => apiProvider);

            UserContext      = userContext;
            _query           = dataContext;
            _auth            = accessManager;
            _settingsManager = settingsManager;
            _apiProvider     = apiProvider;
            _pcommand        = pcommands;
        }
 private static Task <string> GetResetPasswordUrlAsync(IAppUrlProvider appUrlProvider, string appName)
 {
     return(appUrlProvider.GetUrlAsync(appName, AccountUrlNames.ResetPassword));
 }
 public static Task <string> GetResetPasswordUrlAsync(this IAppUrlProvider appUrlProvider, string appName)
 {
     return(appUrlProvider.GetUrlAsync(appName, AccountUrlNames.PasswordReset));
 }
Ejemplo n.º 9
0
 public AppUrlProvider_Tests()
 {
     _appUrlProvider = ServiceProvider.GetRequiredService <AppUrlProvider>();
     _currentTenant  = ServiceProvider.GetRequiredService <ICurrentTenant>();
 }