modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheNearTest.cs
/// <summary>
/// Tests near cache on the client node.
/// </summary>
Tests near cache on the client node.
Tests near cache on the client node .
[Test]
        public void TestCreateNearCacheOnClientNode()
        {
            const string cacheName = "client_cache";
            var cfg = new IgniteConfiguration(TestUtils.GetTestConfiguration())
            {
                ClientMode = true,
                IgniteInstanceName = "clientGrid"
            };
            using (var clientGrid = Ignition.Start(cfg))
            {
                clientGrid.CreateCache<int, string>(cacheName);
                Assert.Throws<CacheException>(
                    () => clientGrid.CreateNearCache<int, string>(cacheName, new NearCacheConfiguration()));
            }
        }
[ Test ] public void TestCreateNearCacheOnClientNode ( ) { const string cacheName = " " ; var cfg = new IgniteConfiguration ( TestUtils . GetTestConfiguration ( ) ) { ClientMode = true , IgniteInstanceName = " " } ; using ( var clientGrid = Ignition . Start ( cfg ) ) { clientGrid . CreateCache < int , string > ( cacheName ) ; Assert . Throws < CacheException > ( ( ) => clientGrid . CreateNearCache < int , string > ( cacheName , new NearCacheConfiguration ( ) ) ) ; } }
Tests near cache on the client node.
Tests near cache on the client node .
// Near cache can't be started on client node