File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,17 @@ protected virtual MemcachedClient GetClient(MemcachedProtocol protocol = Memcach
2626 {
2727 options . AddServer ( "memcached" , 11211 ) ;
2828 options . Protocol = protocol ;
29+ options . Transcoder = "BinaryFormatterTranscoder" ;
2930 } ) ;
30- services . AddLogging ( ) ;
31+ services . AddLogging ( builder => builder . SetMinimumLevel ( LogLevel . Error ) . AddConsole ( ) ) ;
32+
3133 IServiceProvider serviceProvider = services . BuildServiceProvider ( ) ;
3234 var client = serviceProvider . GetService < IMemcachedClient > ( ) as MemcachedClient ;
3335 client . Remove ( "VALUE" ) ;
3436 return client ;
3537 }
3638
39+ [ Serializable ]
3740 public class TestData
3841 {
3942 public TestData ( ) { }
Original file line number Diff line number Diff line change 66 <ItemGroup >
77 <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 2.0.0" />
88 <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.0.0" />
9+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 2.0.0" />
910 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.3.0" />
1011 <PackageReference Include =" xunit" Version =" 2.3.0-beta3-build3705" />
1112 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.0-beta3-build3705" />
You can’t perform that action at this time.
0 commit comments