/// <summary>
 /// Returns a paired <see cref="LocalNetworkConnection"/> that represents the other endpoint.
 /// </summary>
 public LocalNetworkConnection GetPairedNetworkConnection()
 {
     if (this.pairedNetworkConnection == null)
     {
         this.pairedNetworkConnection = new LocalNetworkConnection(this);
     }
     return(this.pairedNetworkConnection);
 }
 /// <summary>
 /// Constructor for creating a linked pair of network connections.
 /// </summary>
 private LocalNetworkConnection(LocalNetworkConnection pairedNetworkConnection) : this(pairedNetworkConnection.MaxMessageSize)
 {
     this.pairedNetworkConnection = pairedNetworkConnection;
 }