コード例 #1
0
ファイル: GridProxy.cs プロジェクト: RavenB/gridsearch
 // 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
ファイル: GridProxy.cs プロジェクト: RavenB/gridsearch
 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;
 }