コード例 #1
0
ファイル: ThinClient.cs プロジェクト: zhoudonghao01/ignite
        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[]
        }
コード例 #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();
        }
コード例 #3
0
 public void TestJavaServiceThinClient()
 {
     DoTestService(_thinClient.GetServices().GetServiceProxy <IJavaService>(_javaSvcName));
 }