예제 #1
0
파일: WorkerRole.cs 프로젝트: Aco96/GitHub
        public void Connect()
        {
            var binding = new NetTcpBinding();
            ChannelFactory <IHealthMonitoring> factory = new ChannelFactory <IHealthMonitoring>(binding, new EndpointAddress("net.tcp://localhost:6000/HealthMonitoring"));

            proxy = factory.CreateChannel();
            //dalje se koristi proxy.IAmAlive() u RunAsync metodi
        }
예제 #2
0
        public void Connect()
        {
            ChannelFactory<IHealthMonitoring> factory = new ChannelFactory<IHealthMonitoring>(new NetTcpBinding(), new EndpointAddress("net.tcp://localhost:11000/HealthMonitoring"));

            proxy = factory.CreateChannel();

            Console.WriteLine("Connected.");
        }