Esempio n. 1
0
 // SetLoginResponseDelegate: specify a callback loginResponseDelegate that will be called when the server responds to login
 public void SetLoginResponseDelegate(XmlRpcResponseDelegate loginResponseDelegate)
 {
     lock (this)
     {
         this.loginResponseDelegate = loginResponseDelegate;
     }
 }
Esempio n. 2
0
 public void AddLoginResponseDelegate(XmlRpcResponseDelegate xmlRpcResponseDelegate)
 {
     lock (loginResponseDelegates)
         if (!loginResponseDelegates.Contains(xmlRpcResponseDelegate))
             loginResponseDelegates.Add(xmlRpcResponseDelegate);
 }
Esempio n. 3
0
 // SetLoginResponseDelegate: specify a callback loginResponseDelegate that will be called when the server responds to login
 public XmlRpcResponseDelegate SetLoginResponseDelegate(XmlRpcResponseDelegate loginResponseDelegate)
 {
     XmlRpcResponseDelegate lastDelegate;
     lock (this)
     {
         lastDelegate = this.loginResponseDelegate;
         this.loginResponseDelegate = loginResponseDelegate;
     }
     return lastDelegate;
 }