Helios.Reactor.Bootstrap.ServerBootstrap.BuildInternal C# (CSharp) Method

BuildInternal() protected method

protected BuildInternal ( ) : IConnectionFactory
return IConnectionFactory
        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");
            }
        }