Пример #1
0
 /// <summary>
 /// Authority create partial deciphers push to server.
 /// </summary>
 /// <param name="votingId">Id of the voting.</param>
 /// <param name="authorityFileName">Filename to load authority data.</param>
 /// <param name="authorityCertificate">Authority's certificate.</param>
 /// <param name="askCallBack">Callback to ask for permission to partially decipher.</param>
 /// <param name="callBack">Callback upon completion.</param>
 public void CreateDeciphers(Guid votingId, AuthorityCertificate authorityCertificate, string authorityFileName, AskForPartiallyDecipherCallBack askCallBack, CreateDeciphersCallBack callBack)
 {
     lock (this.operations)
       {
     this.operations.Enqueue(new CreateDeciphersOperation(votingId, authorityCertificate, authorityFileName, askCallBack, callBack));
       }
 }
Пример #2
0
 /// <summary>
 /// Create a new vote cast opeation.
 /// </summary>
 /// <param name="votingId">Id of the voting.</param>
 /// <param name="authorityFileName">Filename to save authority data.</param>
 /// <param name="authorityCertificate">Authority's certificate.</param>
 /// <param name="askCallBack">Callback to ask for permission to partially decipher.</param>
 /// <param name="callBack">Callback upon completion.</param>
 public CreateDeciphersOperation(Guid votingId, AuthorityCertificate authorityCertificate, string authorityFileName, AskForPartiallyDecipherCallBack askCallBack, CreateDeciphersCallBack callBack)
 {
     this.votingId = votingId;
     this.authorityFileName = authorityFileName;
     this.authorityCertificate = authorityCertificate;
     this.callBack = callBack;
     this.askCallBack = askCallBack;
 }