IStateStore Interface |
A context that provides storage for arbitrary items.
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface IStateStore
The IStateStore type exposes the following members.
Name | Description | |
---|---|---|
Get<T> |
Gets a value of a given type from the store.
| |
GetOrAdd<T> |
Gets a value from the cache or adds it if it does not exist yet.
| |
GetOrNew<T> |
Gets a value from the cache or adds a default value if it does not exist yet.
| |
Set<T> |
Adds a value to the store or replace it if a value of the same type already exists.
|