public SaveApprenticeshipFavouriteCommandHandler( IFavouritesWriteRepository writeRepository, IFavouritesReadRepository readRepository, ILogger <SaveApprenticeshipFavouriteCommandHandler> logger, IFatRepository fatRepository) { _writeRepository = writeRepository; _readRepository = readRepository; _logger = logger; _fatRepository = fatRepository; }
public FatFavouritesTableStorageRepository( ILogger <FatFavouritesTableStorageRepository> logger, IOptions <ConnectionStrings> option, IFatRepository fatRepository) { _logger = logger; _retryPolicy = GetRetryPolicy(); try { _storageAccount = CloudStorageAccount.Parse(option.Value.AzureStorage); } catch (FormatException) { _logger.LogError("Invalid storage account information provided. Please confirm the AccountName and AccountKey are valid in the app.config file - then restart the application."); throw; } catch (ArgumentException) { _logger.LogError("Invalid storage account information provided. Please confirm the AccountName and AccountKey are valid in the app.config file - then restart the sample."); throw; } }
public FatApiHealthCheck(IFatRepository fatRepository) { _repository = fatRepository; }