private static ExpertApplicationsStorageProvider InitializeExpertApplicationsStorageProvider(IServiceProvider serviceProvider) { var storageProvider = new ExpertApplicationsStorageProvider(serviceProvider.GetService <AzureStorageOptions>()); storageProvider.InitializeAsync().Wait(); return(storageProvider); }
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; }