Animatroller.ExpanderCommunication.ClientConnectionManager.ClientConnectionManager C# (CSharp) Method

ClientConnectionManager() public method

public ClientConnectionManager ( string serverName, int serverPort, string hostId ) : System
serverName string
serverPort int
hostId string
return System
        public ClientConnectionManager(string serverName, int serverPort, string hostId)
        {
            this.connectToHostName = serverName;
            this.connectToPort = serverPort;
            this.hostId = hostId;

            this.cts = new CancellationTokenSource();

            Task.Run(async () => await ConnectorWorker(this.cts.Token));
        }