Ejemplo n.º 1
0
        public static void Services()
        {
            var cfg = new IgniteClientConfiguration();
            //tag::client-services[]
            IIgniteClient   client       = Ignition.StartClient(cfg);
            IServicesClient services     = client.GetServices();
            IMyService      serviceProxy = services.GetServiceProxy <IMyService>("MyService");

            serviceProxy.MyServiceMethod("hello");
            //end::client-services[]
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            using (IIgniteClient ignite = Ignition.StartClient(Utils.GetThinClientConfiguration()))
            {
                Console.WriteLine(">>> Services example started.");
                Console.WriteLine();

                var prx = ignite.GetServices().GetServiceProxy <IMapService <int, string> >(ServiceName);

                for (var i = 0; i < 10; i++)
                {
                    prx.Put(i, i.ToString());
                }

                var mapSize = prx.Size;

                Console.WriteLine(">>> Map service size: " + mapSize);
            }

            Console.WriteLine();
            Console.WriteLine(">>> Example finished, press any key to exit ...");
            Console.ReadKey();
        }
Ejemplo n.º 3
0
 public void TestJavaServiceThinClient()
 {
     DoTestService(_thinClient.GetServices().GetServiceProxy <IJavaService>(_javaSvcName));
 }