예제 #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;
     }
 }
예제 #2
0
 public void AddLoginRequestDelegate(XmlRpcRequestDelegate xmlRpcRequestDelegate)
 {
     lock(loginRequestDelegates)
         if(!loginRequestDelegates.Contains(xmlRpcRequestDelegate))
             loginRequestDelegates.Add(xmlRpcRequestDelegate);
     
 }
예제 #3
0
파일: GriderProxy.cs 프로젝트: diva/Grider
 // 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;
 }