/// <summary>
 /// Create a new serverPort.
 /// </summary>
 /// <param name="config">The channel config.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 /// <exception cref="ObjectDisposedException">
 /// This instance has already been disposed.
 /// </exception>
 protected virtual ServerPort CreateServerPort(RpcChannelConfig config, RpcConfigurationContext context)
 {
     ThrowExceptionIfDisposed();
     return(config.CreateServerPort(context));
 }
 /// <summary>
 /// Create a new channel.
 /// </summary>
 /// <param name="config">The channel config.</param>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 /// <exception cref="ObjectDisposedException">
 /// This instance has already been disposed.
 /// </exception>
 protected virtual Channel CreateChannel(RpcChannelConfig config, RpcConfigurationContext context)
 {
     ThrowExceptionIfDisposed();
     return(config.CreateChannel(context));
 }