Exemplo n.º 1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
     VideoCapturer.Dispose();
 }
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     foreach (var subscriber in SubscriberByStream.Values)
     {
         subscriber.Dispose();
     }
     Publisher?.Dispose();
     Capturer?.Dispose();
     Session?.Dispose();
 }
Exemplo n.º 3
0
 private void MainWindow_Closing(object sender, CancelEventArgs e)
 {
     foreach (var subscriber in subscriberByStream.Values)
     {
         subscriber.Dispose();
     }
     publisher?.Dispose();
     capturer?.Dispose();
     session?.Dispose();
 }