예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 public Cmpp30Transport(Cmpp30Configuration config)
 {
     _config           = config;
     _backgroundThread = new Thread(Loop)
     {
         Name = string.Format("Cmpp30Transport-{0:HHmmss}", DateTime.Now)
     };
     _backgroundThread.Start();
 }
예제 #4
0
 public Cmpp30Transport(Cmpp30Configuration config)
 {
     _config = config;
     _backgroundThread = new Thread(Loop) { Name = string.Format("Cmpp30Transport-{0:HHmmss}", DateTime.Now) };
     _backgroundThread.Start();
 }