-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1da15bd
commit 770d0bc
Showing
5 changed files
with
323 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Atata | ||
{ | ||
/// <summary> | ||
/// Specifies whether the component value cache mechanic should be used. | ||
/// Caches a value of a component when it is requested at first time, | ||
/// then returns the cached value on further scope requests. | ||
/// </summary> | ||
public class UsesValueCacheAttribute : MulticastAttribute, ICanUseCache | ||
{ | ||
public UsesValueCacheAttribute() | ||
: this(true) | ||
{ | ||
} | ||
|
||
public UsesValueCacheAttribute(bool useCache) | ||
{ | ||
UseCache = useCache; | ||
} | ||
|
||
/// <inheritdoc/> | ||
public bool UseCache { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.