/// <summary> /// Initialize with cmpp 3.0 config /// </summary> /// <param name="config"></param> public Cmpp30Client(Cmpp30Configuration config) { _config = config; _transport = new Cmpp30Transport(config); Status = Cmpp30ClientStatus.Disconnected; _transport.OnCmppMessageReceive += OnCmppMessageReceive; _transport.OnDisconnected += OnTransportDisconnected; }
public Cmpp30Transport(Cmpp30Configuration config) { _config = config; _backgroundThread = new Thread(Loop) { Name = string.Format("Cmpp30Transport-{0:HHmmss}", DateTime.Now) }; _backgroundThread.Start(); }