PeerCastStation.Core.OutputListener.Stop C# (CSharp) Method

Stop() public method

接続を待ち受けを終了します
public Stop ( ) : void
return void
    public void Stop()
    {
      logger.Debug("Stopping listener");
      cancellationSource.Cancel();
      IsClosed = true;
      server.Stop();
      listenTask.Wait();
    }

Usage Example

示例#1
0
 /// <summary>
 /// 指定した接続待ち受けを終了します。
 /// 既に接続されているクライアント接続には影響ありません
 /// </summary>
 /// <param name="listener">待ち受けを終了するリスナ</param>
 public void StopListen(OutputListener listener)
 {
     listener.Stop();
     Utils.ReplaceCollection(ref outputListeners, orig => {
         var new_collection = new List <OutputListener>(orig);
         new_collection.Remove(listener);
         return(new_collection);
     });
 }
All Usage Examples Of PeerCastStation.Core.OutputListener::Stop