Ejemplo n.º 1
0
        // public DistributedResourceStack Stack
        //{
        //     get { return stack; }
        //}

        /// <summary>
        /// Create a new distributed resource.
        /// </summary>
        /// <param name="connection">Connection responsible for the distributed resource.</param>
        /// <param name="template">Resource template.</param>
        /// <param name="instanceId">Instance Id given by the other end.</param>
        /// <param name="age">Resource age.</param>
        public DistributedResource(DistributedConnection connection, uint instanceId, ulong age, string link)
        {
            this.link       = link;
            this.connection = connection;
            this.instanceId = instanceId;
            //this.Instance.Template = template;
            //this.Instance.Age = age;
            //this.template = template;
            //this.age = age;
        }
 public DistributedPropertyContext(DistributedConnection connection, object value)
 {
     this.Value      = value;
     this.Connection = connection;
 }