Wraps an object into an ObjectDependency. The GetCacheKey() method relies on the KeyBuilder of DefaultService to create the cache key of the wrapped object, except when the dependency is added or invalidated through another ICachingService, which uses its own key builder.
Implements
Namespace: PostSharp.Patterns.Caching.Dependencies
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class ObjectDependency : ICacheDependencyConstructors
| Name | Description |
|---|---|
| ObjectDependency(object) | Initializes a new instance of the ObjectDependency class. |
Properties
| Name | Description |
|---|---|
| Object | Gets the wrapped object. |
Methods
| Name | Description |
|---|---|
| Equals(ICacheDependency) | Determines whether the specified object is equal to the current object. |
| Equals(object) | |
| GetCacheKey() | Gets a string that uniquely represents the current object. |
| GetHashCode() |