Skip to content

Commit f11fe7c

Browse files
vittorelliardalis
andcommitted
Apply code suggestions from pull request on GitHub
Co-authored-by: Steve Smith <[email protected]>
1 parent e657ac8 commit f11fe7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/extensions/create-specification-builder.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ nav_order: 2
77

88

99
# How to create your own specification builder
10+
1011
How to create your own specification builder
1112

1213
## Example: Configure caching behaviour through specification builder extension method
1314

14-
In order to achieve this:
15+
In order to achieve this (note the `.WithTimeToLive` method):
1516

1617
````csharp
1718
public class CustomerByNameWithStores : Specification<Customer>
@@ -47,10 +48,10 @@ This extension method can only be called when chained after `SpecificationBuilde
4748
// TODO: Repository example
4849
```
4950

50-
Finally, we need to take of some plumbing to implement both `` and ``. The class below uses `ConditionalWeakTable` to do the trick. An other solution is to create a base class that inherits from `Specification<T>`.
51+
Finally, we need to take of some plumbing to implement both `` and ``. The class below uses `ConditionalWeakTable` to do the trick. Another solution is to create a base class that inherits from `Specification<T>`.
5152

5253
````csharp
53-
public static class SpecificationExtentions
54+
public static class SpecificationExtensions
5455
{
5556
private static readonly ConditionalWeakTable<object, CacheOptions> SpecificationCacheOptions = new();
5657

0 commit comments

Comments
 (0)