using Microsoft.Extensions.Configuration; using NTP.Application.Refinery.Trips; namespace NTP.Infrastructure.Persistence.Repositories.Refinery.Trips; /// Binds configuration section "Refinery:Trips" (see ). internal sealed class TripSettingsService : ITripSettingsService { public TripSettingsService(IConfiguration configuration) { Value = new TripOptions(); configuration.GetSection(TripOptions.SectionName).Bind(Value); } public TripOptions Value { get; } }