Esempio n. 1
0
 public void Disconnect()
 {
     if (this.fClient is IDisposable)
     {
         this.fClient.Dispose();
     }
     this.fClient    = null;
     this.fConnected = false;
 }
Esempio n. 2
0
 public void Connect()
 {
     if (this.fConnected)
     {
         this.Disconnect();
     }
     this.fClient = new StompClient(this.Target, this.Port, Username, Password);
     this.fClient.HaveMessage += new Action<StompMessage>(this.fClient_HaveMessage);
     this.fClient.StartReadMessage();
     this.fConnected = true;
 }
Esempio n. 3
0
 public void Connect()
 {
     if (this.fConnected)
     {
         this.Disconnect();
     }
     this.fClient              = new StompClient(this.Target, this.Port, Username, Password);
     this.fClient.HaveMessage += new Action <StompMessage>(this.fClient_HaveMessage);
     this.fClient.StartReadMessage();
     this.fConnected = true;
 }
Esempio n. 4
0
 public void Disconnect()
 {
     if (this.fClient is IDisposable)
     {
         this.fClient.Dispose();
     }
     this.fClient = null;
     this.fConnected = false;
 }