public FarmDataToFarmService(IPostcodeService postcodeService, IHttpClientFactory httpClientFactory, IGeohashService geohashService, ILogger <FarmDataToFarmService> logger) { PostcodeService = postcodeService; GeohashService = geohashService; Logger = logger; HttpClient = httpClientFactory.CreateClient(); HttpClient.DefaultRequestHeaders.UserAgent.TryParseAdd(GetType().Namespace); }
public FarmDynamoDbRepository(IDynamoDBContext dynamoDBContext, IGeohashService geohashService) { DynamoDBContext = dynamoDBContext; GeohashService = geohashService; }