示例#1
0
        /// <summary>
        /// This factory method can be used to Get a request object and set its 
        /// parameters
        /// </summary>
        /// <returns>Returns an object from the pool.</returns>
        public static CDSData Get(CDSAction action, string refType, string refValue, JobPriority priority)
        {
            CDSData rq = new CDSData();

            rq.ByReference = true;
            rq.RefType = refType;
            rq.RefValue = refValue;
            rq.Action = action;
            rq.Priority = priority;

            return rq;
        }
示例#2
0
        /// <summary>
        /// This factory method can be used to Get a request object and set its 
        /// parameters
        /// </summary>
        /// <returns>Returns an object from the pool.</returns>
        public static CDSData Get(CDSAction action, Guid? CID, Guid? VID, JobPriority priority)
        {
            CDSData rq = new CDSData();
            rq.ByReference = false;

            if (CID.HasValue)
                rq.IDContent = CID.Value;

            if (VID.HasValue)
                rq.IDVersion = VID.Value;

            rq.Action = action;
            rq.Priority = priority;
            return rq;
        }
示例#3
0
 /// <summary>
 /// This factory method can be used to Get a request object and set its 
 /// parameters
 /// </summary>
 /// <returns>Returns an object from the pool.</returns>
 public static CDSData Get(CDSAction action, JobPriority priority)
 {
     CDSData rq = new CDSData();
     rq.Action = action;
     rq.Priority = priority;
     return rq;
 }