Wraps an object into an ObjectDependency. The GetCacheKey() relies on the DefaultKeyBuilder to create the cache key of the wrapped object.
Implements
Namespace: PostSharp.Patterns.Caching.Dependencies
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class ObjectDependency : ICacheDependencyConstructors
| Name | Description |
|---|---|
| ObjectDependency(object) | Initializes a new ObjectDependency. |
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() |