示例#1
0
 /**
  * Called when all the SharpBCI threads should shutdown.
  * You may or may not continue to receive events after calling this
  * You should unregister events before calling this to avoid memory leaks
  */
 public void Close()
 {
     Logger.Log("SharpBCI closed");
     cts.Cancel();
     foreach (var stage in stages)
     {
         stage.Stop();
     }
     if (file != null)
     {
         file.Close();
     }
 }
示例#2
0
 public void Dispose()
 {
     outputStream.Close();
 }