Exemplo n.º 1
0
 public GreyFoxRole(int id)
 {
     this.iD = id;
     lock (this)
     {
         isSynced = GreyFoxRoleManager._fill(this);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Ensures that the object's fields and children are
        /// pre-loaded before any updates or reads.
        /// </summary>
        public void EnsurePreLoad()
        {
            if (!isPlaceHolder)
            {
                return;
            }

            lock (this)
            {
                GreyFoxRoleManager._fill(this);
                isPlaceHolder = false;
            }
        }