Exemple #1
0
        public void Start()
        {
            var binding = new RabbitMQ.ServiceModel.RabbitMQBinding(Program.Broker, 5672);

            _host.AddServiceEndpoint(typeof(IEchoService), binding, "Echo");
            _host.Open();
        }
Exemple #2
0
 public EchoServiceClient()
 {
     var binding = new RabbitMQ.ServiceModel.RabbitMQBinding(Program.Broker, 5672);
     _channelFactory = new ChannelFactory<IEchoService>(binding, new EndpointAddress(Program.Protocol + ":///Echo"));
 }
 public MeetAndGreetClient()
 {
     var binding = new RabbitMQ.ServiceModel.RabbitMQBinding(Program.Broker, 5672);
     var instanceContext = new InstanceContext(new IfSomeoneCallsMe());
     _channelFactory = new DuplexChannelFactory<IMeetAndGreetService>(instanceContext, binding, new EndpointAddress(Program.Protocol + ":///MeetAndGreet"));
 }