@@ -29,7 +29,7 @@ public class MemcachedNode : IMemcachedNode
2929 private bool isDisposed ;
3030
3131 private readonly EndPoint _endPoint ;
32- private readonly ISocketPoolConfiguration config ;
32+ private readonly ISocketPoolConfiguration _config ;
3333 private InternalPoolImpl internalPoolImpl ;
3434 private bool isInitialized = false ;
3535 private SemaphoreSlim poolInitSemaphore = new SemaphoreSlim ( 1 , 1 ) ;
@@ -42,7 +42,7 @@ public MemcachedNode(
4242 {
4343 _endPoint = endpoint ;
4444 EndPointString = endpoint ? . ToString ( ) . Replace ( "Unspecified/" , string . Empty ) ;
45- this . config = socketPoolConfig ;
45+ _config = socketPoolConfig ;
4646
4747 if ( socketPoolConfig . ConnectionTimeout . TotalMilliseconds >= Int32 . MaxValue )
4848 throw new InvalidOperationException ( "ConnectionTimeout must be < Int32.MaxValue" ) ;
@@ -65,7 +65,7 @@ public MemcachedNode(
6565
6666 protected INodeFailurePolicy FailurePolicy
6767 {
68- get { return this . failurePolicy ?? ( this . failurePolicy = this . config . FailurePolicyFactory . Create ( this ) ) ; }
68+ get { return this . failurePolicy ?? ( this . failurePolicy = _config . FailurePolicyFactory . Create ( this ) ) ; }
6969 }
7070
7171 /// <summary>
@@ -121,7 +121,7 @@ public bool Ping()
121121 // it's easier to create a new pool than reinitializing a dead one
122122 // rewrite-then-dispose to avoid a race condition with Acquire (which does no locking)
123123 var oldPool = this . internalPoolImpl ;
124- var newPool = new InternalPoolImpl ( this , this . config , _logger ) ;
124+ var newPool = new InternalPoolImpl ( this , _config , _logger ) ;
125125
126126 Interlocked . Exchange ( ref this . internalPoolImpl , newPool ) ;
127127
@@ -774,7 +774,7 @@ protected internal virtual PooledSocket CreateSocket()
774774 {
775775 try
776776 {
777- var ps = new PooledSocket ( _endPoint , this . config . ConnectionTimeout , this . config . ReceiveTimeout , _logger ) ;
777+ var ps = new PooledSocket ( _endPoint , _config . ConnectionTimeout , _config . ReceiveTimeout , _logger ) ;
778778 ps . Connect ( ) ;
779779 return ps ;
780780 }
@@ -790,7 +790,7 @@ protected internal virtual async Task<PooledSocket> CreateSocketAsync()
790790 {
791791 try
792792 {
793- var ps = new PooledSocket ( _endPoint , this . config . ConnectionTimeout , this . config . ReceiveTimeout , _logger ) ;
793+ var ps = new PooledSocket ( _endPoint , _config . ConnectionTimeout , _config . ReceiveTimeout , _logger ) ;
794794 await ps . ConnectAsync ( ) ;
795795 return ps ;
796796 }
0 commit comments