Beispiel #1
0
 /// <summary>
 /// Get voting list from server.
 /// </summary>
 /// <param name="certificateStorage">Certificate storage.</param>
 /// <param name="dataPath">Path where program data is stored.</param>
 /// <param name="callBack">Callback upon completion.</param>
 public void GetVotingList(CertificateStorage certificateStorage, string dataPath, GetVotingListCallBack callBack)
 {
     lock (this.operations)
       {
     this.operations.Enqueue(new GetVotingListOperation(certificateStorage, dataPath, callBack));
       }
 }
Beispiel #2
0
 /// <summary>
 /// Create a new voting list get operation.
 /// </summary>
 /// <param name="certificateStorage">Certificate storage to check against.</param>
 /// <param name="dataPath">Path where program data is stored.</param>
 /// <param name="callBack">Callback upon completion.</param>
 public GetVotingListOperation(CertificateStorage certificateStorage, string dataPath, GetVotingListCallBack callBack)
 {
     this.certificateStorage = certificateStorage;
     this.dataPath = dataPath;
     this.callBack = callBack;
 }