mirror of
https://github.com/eliasstepanik/IonosDDNSUpdater.git
synced 2026-01-11 19:48:26 +00:00
Move try to different context
This commit is contained in:
parent
e6b175a18c
commit
63fba2b49e
@ -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.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user