File tree Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 1- using System ;
2- using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Text ;
5- using Enyim . Caching . Configuration ;
6- using Enyim . Caching . Memcached . Results ;
1+ using Enyim . Caching . Configuration ;
72using Enyim . Caching . Memcached ;
8- using Xunit ;
9- using Microsoft . Extensions . DependencyInjection ;
3+ using Enyim . Caching . Memcached . Results ;
104using Microsoft . Extensions . Configuration ;
5+ using Microsoft . Extensions . DependencyInjection ;
116using Microsoft . Extensions . Logging ;
7+ using System ;
8+ using System . Collections . Generic ;
9+ using System . Linq ;
10+ using System . Text ;
1211using System . Threading . Tasks ;
12+ using Xunit ;
1313
1414namespace Enyim . Caching . Tests
1515{
@@ -23,10 +23,7 @@ public MemcachedClientTestsBase(Action<MemcachedClientOptions> onAddEnyimMemcach
2323 services . AddEnyimMemcached ( options =>
2424 {
2525 options . AddServer ( "memcached" , 11211 ) ;
26- if ( onAddEnyimMemcached != null )
27- {
28- onAddEnyimMemcached ( options ) ;
29- }
26+ onAddEnyimMemcached ? . Invoke ( options ) ;
3027 } ) ;
3128
3229 services . AddLogging ( builder => builder . SetMinimumLevel ( LogLevel . Debug ) . AddConsole ( ) ) ;
Original file line number Diff line number Diff line change 1- using System ;
1+ using Enyim . Caching . Configuration ;
2+ using Enyim . Caching . Memcached ;
3+ using System ;
24using System . Collections . Generic ;
35using System . Linq ;
46using System . Text ;
57using System . Threading . Tasks ;
6- using Enyim . Caching . Configuration ;
7- using Enyim . Caching . Memcached ;
88using Xunit ;
99
1010namespace Enyim . Caching . Tests
1111{
1212 public class MemcachedClientWithKeyTransformerTests : MemcachedClientTestsBase
1313 {
14- public MemcachedClientWithKeyTransformerTests ( Action < MemcachedClientOptions > onAddEnyimMemcached = null )
15- : base ( options =>
16- {
17- options . KeyTransformer = "Enyim.Caching.Memcached.TigerHashKeyTransformer" ;
18- if ( onAddEnyimMemcached != null )
19- {
20- onAddEnyimMemcached ( options ) ;
21- }
22- } )
14+ public MemcachedClientWithKeyTransformerTests ( )
15+ : base ( options => options . KeyTransformer = "Enyim.Caching.Memcached.TigerHashKeyTransformer" )
2316 {
2417 }
2518
You can’t perform that action at this time.
0 commit comments