Move try to different context

This commit is contained in:
saile2204 2023-03-20 20:34:00 +01:00
parent e6b175a18c
commit 63fba2b49e

View File

@ -62,6 +62,8 @@ public class DDNSService : IDDNSService
public async void Update()
{
foreach (var UpdateURL in UpdateURLs)
{
try
{
var client = new RestClient(UpdateURL);
var request = new RestRequest("",Method.Get);
@ -69,8 +71,6 @@ public class DDNSService : IDDNSService
var body = @"";
request.AddParameter("text/plain", body, ParameterType.RequestBody);
try
{
var response = await client.ExecuteAsync(request);
_logger.LogInformation("Requesting Update on Ionos.");
}