/// <summary>
 /// Event handler for open stream.
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">Event data</param>
 private static void OnStreamOpened(object sender, StreamEventArgs e)
 {
     SMLogger.LogConsole("Stream is opened: id=" + e.Stream.StreamId);
     string filename = e.Stream.Headers[SMHeaders.Path];
     lock (exclusiveLock)
     {
         currentStreams.StartStream(filename, e.Stream.StreamId);
     }
 }
 /// <summary>
 /// Event handler for open stream.
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">Event data</param>
 private static void OnStreamOpened(object sender, StreamEventArgs e)
 {
     SMLogger.LogConsole("Stream is opened: id=" + e.Stream.StreamId);
 }