protected override IConnectionFactory BuildInternal()
{
switch (Type)
{
case TransportType.Tcp:
return new TcpServerFactory(this);
case TransportType.Udp:
return new UdpServerFactory(this);
default:
throw new InvalidOperationException("This shouldn't happen");
}
}