/// <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, string refType, string refValue) { return Get(action, refType, refValue, JobPriority.Normal); }
/// <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) { return Get(action, CID, VID, JobPriority.Normal); }
/// <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; }
/// <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) { return Get(action, JobPriority.Normal); }
/// <summary> /// This attribute specifies which actions the CDSState implements. These attributes /// only specify the default behavior and can be overriden in specific implementation by /// adding attributes with a higher priority or specifically in code. /// </summary> /// <param name="action"> /// This is the CDSStateAction that the attribute defines. /// </param> /// <param name="deny"> /// This property defines whether the action is specifically denied. Deny will override a permit when they have the same priority. By default this value is set to false. /// </param> /// <param name="priority"> /// This is the priority of the attribute. Higher value attributes will override lower value attributes. /// By default this value will be 0. /// </param> public CDSStateActionPermitAttribute(CDSAction action, bool deny, int priority) { mAction=action; mDeny=deny; mPriority=priority; }
/// <summary> /// This attribute specifies which actions the CDSState implements. These attributes /// only specify the default behavior and can be overriden in specific implementation by /// adding attributes with a higher priority or specifically in code. /// </summary> /// <param name="action"> /// This is the CDSStateAction that the attribute defines. /// </param> /// <param name="deny"> /// This property defines whether the action is specifically denied. Deny will override a permit when they have the same priority. By default this value is set to false. /// </param> public CDSStateActionPermitAttribute(CDSAction action, bool deny):this(action,deny,0) { }
/// <summary> /// This attribute specifies which actions the CDSState implements. These attributes /// only specify the default behavior and can be overriden in specific implementation by /// adding attributes with a higher priority or specifically in code. /// </summary> /// <param name="action"> /// This is the CDSStateAction that the attribute defines. /// </param> public CDSStateActionPermitAttribute(CDSAction action) : this(action, false, 0) { }