C# Class WhoCanHelpMe.Framework.Caching.Cacheable

Inheritance: ICacheable
Datei anzeigen Open project: jongeorge1/Who-Can-Help-Me Class Usage Examples

Public Methods

Method Description
GenerateCacheKey ( ) : string

Gets the cache key for the object.

Protected Methods

Method Description
GetSignatureProperties ( ) : IEnumerable

GetTypeSpecificSignatureProperties ( ) : IEnumerable

The getter for SignatureProperties for value objects should include the properties which make up the entirety of the object's properties; that's part of the definition of a value object.

This ensures that the value object has no properties decorated with the [DomainSignature] attribute.

Private Methods

Method Description
GenerateCacheKey ( Cacheable cacheable ) : string

Generate a cachekey from the ICacheable object. This method crawls the object and creates a string containing a key pair value for all properties and collections.

Method Details

GenerateCacheKey() public method

Gets the cache key for the object.
public GenerateCacheKey ( ) : string
return string

GetSignatureProperties() protected method

protected GetSignatureProperties ( ) : IEnumerable
return IEnumerable

GetTypeSpecificSignatureProperties() protected method

The getter for SignatureProperties for value objects should include the properties which make up the entirety of the object's properties; that's part of the definition of a value object.
This ensures that the value object has no properties decorated with the [DomainSignature] attribute.
protected GetTypeSpecificSignatureProperties ( ) : IEnumerable
return IEnumerable