Show / Hide Table of Contents

    Class TransactionCountExpression

    Represents an expression which evaluates to True, if the number of evaluated messages during the specified time interval is within defined boundaries.

    Inheritance
    Object
    AuthorizationExpressionBase
    TransactionCountExpression
    Implements
    IValidator
    IEquatable<AuthorizationExpressionBase>
    IExtensibleDataObject
    Inherited Members
    AuthorizationExpressionBase.Find<T>()
    AuthorizationExpressionBase.ToString(String, ICollection<AuthorizationExpressionBase>)
    AuthorizationExpressionBase.Title
    AuthorizationExpressionBase.ErrorMessage
    AuthorizationExpressionBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Security
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class TransactionCountExpression : AuthorizationExpressionBase, IValidator, IEquatable<AuthorizationExpressionBase>, IExtensibleDataObject

    Constructors

    TransactionCountExpression()

    Declaration
    public TransactionCountExpression()

    Fields

    ElementName

    Name of the root element when object is serialized to XML.

    Declaration
    public const string ElementName = "COUNT"
    Field Value
    Type Description
    String

    Properties

    AccumulationInterval

    Gets or sets the time interval on which transaction count is accumulated. Interval starts with the first transaction that is outside of the previous time interval. The reasonable range of values is from 5 seconds to 20 minutes.

    Declaration
    public TimeSpan AccumulationInterval { get; set; }
    Property Value
    Type Description
    TimeSpan

    CounterName

    Gets or sets the key name storing the transaction count in a local or distributed cache. If not set then unique name will be generated.

    Declaration
    public string CounterName { get; set; }
    Property Value
    Type Description
    String

    MaximumCount

    Gets or sets the maximum number of transaction accumulated during the configured time interval that should satisfy the internal condition. If not set, than maximum is unlimited.

    Declaration
    public int? MaximumCount { get; set; }
    Property Value
    Type Description
    Nullable<Int32>

    MinimumCount

    Gets or sets the minimum number of transaction accumulated during the configured time interval that should satisfy the internal condition.

    Declaration
    public int MinimumCount { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    Equals(AuthorizationExpressionBase)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(AuthorizationExpressionBase other)
    Parameters
    Type Name Description
    AuthorizationExpressionBase other

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Equals(AuthorizationExpressionBase)

    Equals(Object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True if the specified object is equal to the current object; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Equals(Object)

    Evaluate(AuthorizationExpressionContext)

    Returns True, if provided identity is authorized to proceed with the service call.

    Declaration
    public override bool Evaluate(AuthorizationExpressionContext context)
    Parameters
    Type Name Description
    AuthorizationExpressionContext context

    Provides the message evaluation context.

    Returns
    Type Description
    Boolean

    True, if provided identity is authorized to proceed with the service call. False, otherwise.

    Overrides
    AuthorizationExpressionBase.Evaluate(AuthorizationExpressionContext)

    GetHashCode()

    Returns hash code for the value of this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code for the value of this instance.

    Overrides
    AuthorizationExpressionBase.GetHashCode()

    ToString()

    Returns string representation of the object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String representing the object's content.

    Overrides
    Object.ToString()

    Validate()

    Evaluates the state of the object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    AuthorizationExpressionBase.Validate()

    Implements

    IValidator
    System.IEquatable<T>
    System.Runtime.Serialization.IExtensibleDataObject
    Back to top Nevatech Sentinet 6.5 Online Documentation