/// <summary> /// Gets the voting material. /// </summary> /// <param name="votingid">Id of the voting.</param> /// <param name="callBack">Callback upon completion.</param> public void GetVotingMaterial(Guid votingid, GetVotingMaterialCallBack callBack) { lock (this.operations) { this.operations.Enqueue(new GetVotingMaterialOperation(votingid, callBack)); } }
/// <summary> /// Create a new vote cast opeation. /// </summary> /// <param name="votingId">Id of the voting.</param> /// <param name="callBack">Callback upon completion.</param> public GetVotingMaterialOperation(Guid votingId, GetVotingMaterialCallBack callBack) { this.votingId = votingId; this.callBack = callBack; }