modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheNearTest.cs
/// <summary>
/// Asserts the cache is near.
/// </summary>
Asserts the cache is near.
Asserts the cache is near .
private void AssertCacheIsNear(ICache<int, string> cache)
        {
            var events = cache.Ignite.GetEvents();
            events.LocalListen(this, EventType.CacheEntryCreated);
            _lastEvent = null;
            cache[-1] = "test";
            TestUtils.WaitForCondition(() => _lastEvent != null, 500);
            Assert.IsNotNull(_lastEvent);
            Assert.IsTrue(_lastEvent.IsNear);
            events.StopLocalListen(this, EventType.CacheEntryCreated);
        }
private void AssertCacheIsNear ( ICache < int , string > cache ) { var events = cache . Ignite . GetEvents ( ) ; events . LocalListen ( this , EventType . CacheEntryCreated ) ; _lastEvent = null ; cache [ - 1 ] = " " ; TestUtils . WaitForCondition ( ( ) => _lastEvent != null , 500 ) ; Assert . IsNotNull ( _lastEvent ) ; Assert . IsTrue ( _lastEvent . IsNear ) ; events . StopLocalListen ( this , EventType . CacheEntryCreated ) ; }
Asserts the cache is near.
Asserts the cache is near .
cache
ICache<int, string>