コード例 #1
0
 private async Task CreateDnsServer(IDnsServersService service, string name, string ip, int port)
 {
     var data = new CreateDnsServerData
     {
         Name      = name,
         IpAddress = ip,
         Port      = port
     };
     await service.CreateDnsServerAsync(data);
 }
コード例 #2
0
 public Task <DnsServerDto> CreateDnsServer(CreateDnsServerData data)
 {
     return(_dnsServersService.CreateDnsServerAsync(data));
 }