Exemplo n.º 1
0
 private void Window_Closed(object sender, EventArgs e)
 {
     if (TaskCancellationTokenSource != null)
     {
         TaskCancellationTokenSource.Cancel();
     }
     SenseManager.Close();
     SenseManager.Dispose();
 }
Exemplo n.º 2
0
 private Task DestroySessionTerminationSourceAsync(TaskCancellationTokenSource sessionTerminationSource)
 {
     sessionTerminationSource.Dispose();
     return(Task.CompletedTask);
 }