Exemplo 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;
     }
 }
Exemplo n.º 2
0
 public void AddLoginResponseDelegate(XmlRpcResponseDelegate xmlRpcResponseDelegate)
 {
     lock (loginResponseDelegates)
         if (!loginResponseDelegates.Contains(xmlRpcResponseDelegate))
             loginResponseDelegates.Add(xmlRpcResponseDelegate);
 }
Exemplo 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;
 }