public void WebsitesPeriodeCheck(object sender, WebsiteSettingsChangedEventArgs args) { if (Runner.Status == TaskStatus.Faulted) { Client.Close(); CompletedEvent.Set(); CompletedEvent = new ManualResetEvent(false); Runner = Task.Factory.StartNew(StartSubscriptionClient, TaskCreationOptions.LongRunning); } }
public Task WebsitesPeriodeCheckAsync(object sender, WebsiteSettingsChangedEventArgs args) { //We dont need this method. return(Task.FromResult <object>(null)); }