Migrate existing code
This commit is contained in:
parent
384ff4a6f3
commit
9b49f880a2
30 changed files with 1789 additions and 5 deletions
12
Integrations/PowerDns/Methods.cs
Normal file
12
Integrations/PowerDns/Methods.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace DotNetDDI.Integrations.PowerDns;
|
||||
|
||||
public interface IMethod;
|
||||
|
||||
public record MethodBase(string Method);
|
||||
|
||||
public record Method<TParam>(string Method, TParam Parameters) : MethodBase(Method)
|
||||
where TParam : MethodParameters;
|
||||
|
||||
public record InitializeMethod(InitializeParameters Parameters) : Method<InitializeParameters>("initialize", Parameters), IMethod;
|
||||
|
||||
public record LookupMethod(LookupParameters Parameters) : Method<LookupParameters>("lookup", Parameters), IMethod;
|
||||
Loading…
Add table
Add a link
Reference in a new issue