Exemple #1
0
 // SetLoginRequestDelegate: specify a callback loginRequestDelegate that will be called when the client requests login
 public void SetLoginRequestDelegate(XmlRpcRequestDelegate loginRequestDelegate)
 {
     lock (this)
     {
         this.loginRequestDelegate = loginRequestDelegate;
     }
 }
Exemple #2
0
 public void AddLoginRequestDelegate(XmlRpcRequestDelegate xmlRpcRequestDelegate)
 {
     lock(loginRequestDelegates)
         if(!loginRequestDelegates.Contains(xmlRpcRequestDelegate))
             loginRequestDelegates.Add(xmlRpcRequestDelegate);
     
 }
Exemple #3
0
 // SetLoginRequestDelegate: specify a callback loginRequestDelegate that will be called when the client requests login
 public XmlRpcRequestDelegate SetLoginRequestDelegate(XmlRpcRequestDelegate loginRequestDelegate)
 {
     XmlRpcRequestDelegate lastDelegate;
     lock (this)
     {
         lastDelegate = this.loginRequestDelegate;
         this.loginRequestDelegate = loginRequestDelegate;
     }
     return lastDelegate;
 }