Akka.Remote.Transport.Helios.HeliosTransport.NewServer C# (CSharp) Метод

NewServer() защищенный Метод

protected NewServer ( EndPoint listenAddress ) : Task
listenAddress System.Net.EndPoint
Результат Task
        protected async Task<IChannel> NewServer(EndPoint listenAddress)
        {
            if (InternalTransport == TransportType.Tcp)
            {
                /*
                 * Need to cast the EndPoint to the correct concrete type, otherwise
                 * Helios will not perform DNS resolution on bind.
                 */
                var dns = listenAddress as DnsEndPoint;
                if(dns != null)
                    return await ServerFactory.BindAsync(dns).ConfigureAwait(false);
                return await ServerFactory.BindAsync(listenAddress).ConfigureAwait(false);
            }
                
            else
                throw new NotImplementedException("Haven't implemented UDP transport at this time");
        }