Exemple #1
0
        public void Start()
        {
            if (!started)
            {
                var connector = new HostConnector(
                        host: this.remoteHost,
                        secure: this.clientSocket.IsSecure,
                        connectionMadeCallback: OnConnectedToServer,
                        errorCallback: () => { this.ScheduleFinish(); },
                        settings: this.Settings);

                connector.StartConnecting();
                started = true;
            }
        }