示例#1
0
 /// <summary>
 /// Releases unmanaged and — optionally — managed resources.
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         StopListening(null);
         Connection.UnregisterConnectionsOfChannel(this);
     }
 }
示例#2
0
 /// <summary>
 /// Unregisters all running connections of the current <see cref="TcpExChannel"/> instance.
 /// </summary>
 public void Dispose()
 {
     Connection.UnregisterConnectionsOfChannel(this);
 }