public static ITcpServerConfig CopyInh(ITcpServerConfig src) { if (src == null) { return(null); } if (src.GetType() == typeof(TcpServerConfigImplement)) { return(((TcpServerConfigImplement)src).Copy()); } if (src.GetType() == typeof(TcpServerConfigImplement)) { return(((TcpServerConfigImplement)src).Copy()); } throw new Exception("Unknown type: " + src.GetType().ToString()); }
/// <summary> /// Creates a new TcpServer /// </summary> public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config) : this(config.Address, config.Port, factory) { }
public void SetTcpServerConfigVal(ITcpServerConfig value) { _tcpServerConfig = value; }