Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public RevisionStatusType(string @alias, string name)
     : this()
 {
     Alias = alias;
     Name  = name;
     Id    = new HiveId(Alias.EncodeAsGuid());
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Overridden this method in order to set a random Id
        /// </summary>
        internal override void AddingEntity()
        {
            base.AddingEntity();

            var random = new Random();

            Id = random.Next(10000, int.MaxValue);

            Key = Alias.EncodeAsGuid();
        }