public async Task <PrivateSettings> GetPrivateSettings()
        {
            var settings = await _globalConfigurationSettingsRepository.All();

            var privateSettings = new PrivateSettings(new Settings(settings));

            return(privateSettings);
        }
Esempio n. 2
0
        public async Task <IEnumerable <EventSelector> > ListAggregates()
        {
            var selector = new List <EventSelector>
            {
                new EventSelector(AggregateType.Email, EmailType.NewUser.ToString()),
                new EventSelector(AggregateType.Email, EmailType.NewUserWithoutPassword.ToString()),
                new EventSelector(AggregateType.Email, EmailType.RecoverPassword.ToString())
            };

            var keysGlobalConfig = await _globalConfigurationSettingsRepository.All();

            selector.AddRange(keysGlobalConfig.Select(s => new EventSelector(AggregateType.GlobalSettings, s.Key)));

            return(selector);
        }