/// <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; }
/// <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; }
/// <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; }