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