/// <summary> /// Get remote client config from server. /// </summary> /// <param name="clientName">Name of the client.</param> /// <param name="clientVersion">Version of the client.</param> /// <param name="callBack">Callback upon completion.</param> public void GetConfig(string clientName, string clientVersion, GetConfigCallBack callBack) { lock (this.operations) { this.operations.Enqueue(new GetConfigOperation(clientName, clientVersion, callBack)); } }
/// <summary> /// Create a new voting list get operation. /// </summary> /// <param name="clientName">Name of the client.</param> /// <param name="clientVersion">Version of the client.</param> /// <param name="callBack">Callback upon completion.</param> public GetConfigOperation(string clientName, string clientVersion, GetConfigCallBack callBack) { this.clientName = clientName; this.clientVersion = clientVersion; this.callBack = callBack; }