Пример #1
0
 /// <summary>
 /// Deserializes binary data to object.
 /// </summary>
 /// <param name="context">Context for deserialization</param>
 protected override void Deserialize(DeserializeContext context, byte version)
 {
     base.Deserialize(context, version);
       AuthorityList = context.ReadObject<AuthorityList>();
 }
Пример #2
0
        /// <summary>
        /// Set certificates of all authories in the procedure.
        /// </summary>
        /// <param name="list">List of authorities.</param>
        public void SetAuthorities(AuthorityList list)
        {
            if (list == null)
            throw new ArgumentNullException("list");

              for (int index = 0; index < list.Authorities.Count; index++)
              {
            this.authorities.Add(index + 1, list.Authorities[index]);
              }
        }
Пример #3
0
 /// <summary>
 /// Create a response to a request to fetch the list of authorities.
 /// </summary>
 /// <param name="requestId">Id of the request.</param>
 /// <param name="authorityList">List of authorities for the voting.</param>
 public FetchAuthorityListResponse(Guid requestId, AuthorityList authorityList)
     : base(requestId)
 {
     AuthorityList = authorityList;
 }