Пример #1
0
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="rid"></param>
        /// <param name="position"></param>
        /// <param name="size"></param>
        public ResourceRequestMessage(Int32 rid, Int64 position, Int32 size)
            : base(new CommonHeader(TransferCommands.ResourceRequest, TimeEx.GetTimestamp(), rid))
        {
            this.ContextId = GUIDEx.GetGUIDHashCode();

            this.Position = position;
            this.Size     = size;
        }
Пример #2
0
 private ResoucesInfo(TransferDataType resoucesType, TransferPolicy policy, long postion, long length) : base(policy.MillisecondsTimeout)
 {
     this.Rid          = GUIDEx.GetGUIDHashCode();
     this.ResoucesType = resoucesType;
     this.Policy       = policy;
     this.Postion      = postion;
     this.Length       = length;
 }