Class CacheProperty
Represents a cache property that needs to be set, replaced, or removed for the current service.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Processing
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class CacheProperty : IValidator, IEquatable<CacheProperty>
Constructors
CacheProperty()
Declaration
public CacheProperty()
Fields
CachePropertyNameFormat
Regular expression used for validating a cache property name.
Declaration
public static readonly Regex CachePropertyNameFormat
Field Value
Type | Description |
---|---|
Regex |
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "PROPERTY"
Field Value
Type | Description |
---|---|
String |
Properties
CacheSeconds
Gets or sets the number of seconds to keep the value in cache.
Declaration
public string CacheSeconds { get; set; }
Property Value
Type | Description |
---|---|
String |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
Name
Gets or sets the property name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Value
Gets or sets the static property value. If set to Null then existing property will be deleted.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Equals(CacheProperty)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(CacheProperty other)
Parameters
Type | Name | Description |
---|---|---|
CacheProperty | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
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 objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representing the object's content. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |