예제 #1
0
파일: Client.cs 프로젝트: dbrgn/pi-vote
 /// <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));
       }
 }
예제 #2
0
 /// <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;
 }