Configuration binder
This commit is contained in:
parent
9f548cc482
commit
5e69ae245e
3 changed files with 4 additions and 12 deletions
|
|
@ -1,11 +1,8 @@
|
|||
namespace pdns_dhcp.Options;
|
||||
|
||||
public class PowerDnsOptions(PowerDnsListenerOptions listener)
|
||||
public class PowerDnsOptions
|
||||
{
|
||||
public PowerDnsListenerOptions Listener { get; } = listener;
|
||||
public PowerDnsListenerOptions Listener { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class PowerDnsListenerOptions(string socket)
|
||||
{
|
||||
public string Socket { get; } = socket;
|
||||
}
|
||||
public record class PowerDnsListenerOptions(string Socket);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,6 @@ public class PowerDnsBackend : BackgroundService
|
|||
|
||||
protected override Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,5 @@
|
|||
"Leases": "../../ext/kea/dhcp4.leases"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PowerDns": {
|
||||
"Listener": {
|
||||
"Socket": "/run/pdns-dhcp/pdns.sock"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue