annotate Tools/DocGen/Content/Doc/Aspects/CacheAspect.htm @ 6:11b6da379593

Исправлена странная ошибка при использовании OfType<...>().Where(...)
author cin
date Mon, 05 Dec 2016 05:50:52 +0300
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 <% title # Cache aspect %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2 <% group # Cache aspect %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 <p class="j">This aspect helps to cache method calls.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 The aspect uses input method parameters to create a cache key and
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 caches return value and all output (both <i>ref</i> and <i>out</i>) parameters.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 By default only value types and string type of the method parameters are used
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 to create a cache key. Any other types are ignored.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 This behavior can be changed by assigning the <b>CacheAspect.IsCacheableParameterType</b> property
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 to a delegate providing custom logic.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 CacheAspect.cs
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 <% ..\..\..\HowTo\Aspects\CacheAspect.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15 If we decompile the actual emitted TestClass class, we may see something like the following:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 <% Doc\Aspects\CacheAspect.cs %>