MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​DependenciesObject­Dependency
Open sandboxFocus

ObjectDependency Class

Wraps an System.Object into an ObjectDependency. The GetCacheKey(ICachingService) method relies on the KeyBuilder to create the cache key of the wrapped object.

Inheritance
System.Object
ObjectDependency
Implements
ICacheDependency
System.IEquatable<ObjectDependency>
Namespace: Metalama.Patterns.Caching.Dependencies
Assembly: Metalama.Patterns.Caching.dll
Syntax
public sealed class ObjectDependency : Object, ICacheDependency

Constructors

Name Description
ObjectDependency(Object)

Wraps an System.Object into an ObjectDependency. The GetCacheKey(ICachingService) method relies on the KeyBuilder to create the cache key of the wrapped object.

Properties

Name Description
Object

Methods

Name Description
<Clone>$()
Deconstruct(out Object)
Equals(ObjectDependency)
Equals(Object)
GetCacheKey(ICachingService)

Gets a string that uniquely represents the current object.

GetHashCode()
ToString()

Operators

Name Description
Equality(ObjectDependency, ObjectDependency)
Inequality(ObjectDependency, ObjectDependency)

Explicit Interface Implementations

Name Description
ICacheDependency.CascadeDependencies