17 lines
540 B
C#
17 lines
540 B
C#
using Microsoft.Extensions.Configuration;
|
|
using NTP.Application.Refinery.Trips;
|
|
|
|
namespace NTP.Infrastructure.Persistence.Repositories.Refinery.Trips;
|
|
|
|
/// <summary>Binds configuration section "Refinery:Trips" (see <see cref="TripOptions"/>).</summary>
|
|
internal sealed class TripSettingsService : ITripSettingsService
|
|
{
|
|
public TripSettingsService(IConfiguration configuration)
|
|
{
|
|
Value = new TripOptions();
|
|
configuration.GetSection(TripOptions.SectionName).Bind(Value);
|
|
}
|
|
|
|
public TripOptions Value { get; }
|
|
}
|