Helios.Reactor.Bootstrap.ServerBootstrap.BuildInternal C# (CSharp) Méthode

BuildInternal() protected méthode

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