// SetLoginRequestDelegate: specify a callback loginRequestDelegate that will be called when the client requests login public void SetLoginRequestDelegate(XmlRpcRequestDelegate loginRequestDelegate) { lock (this) { this.loginRequestDelegate = loginRequestDelegate; } }
public void AddLoginRequestDelegate(XmlRpcRequestDelegate xmlRpcRequestDelegate) { lock(loginRequestDelegates) if(!loginRequestDelegates.Contains(xmlRpcRequestDelegate)) loginRequestDelegates.Add(xmlRpcRequestDelegate); }
// 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; }