示例#1
0
        private static ExpertApplicationsStorageProvider InitializeExpertApplicationsStorageProvider(IServiceProvider serviceProvider)
        {
            var storageProvider = new ExpertApplicationsStorageProvider(serviceProvider.GetService <AzureStorageOptions>());

            storageProvider.InitializeAsync().Wait();
            return(storageProvider);
        }
示例#2
0
 public ExpertService(IUserRepository userRepository,
                      IExpertApplicationRepository expertApplicationRepository,
                      IClock clock,
                      ICountryRepository countryRepository,
                      ExpertApplicationsStorageProvider expertApplicationsStorageProvider,
                      IExpertRepository expertRepository,
                      MailService mailService)
 {
     _userRepository                    = userRepository;
     _expertRepository                  = expertRepository;
     _countryRepository                 = countryRepository;
     _mailService                       = mailService;
     _expertApplicationRepository       = expertApplicationRepository;
     _expertApplicationsStorageProvider = expertApplicationsStorageProvider;
     _clock = clock;
 }