예제 #1
0
 public TestEventBusRpc()
 {
     ;
     _eventBusRpcClient = new EventBusRabbitMqRpcClient(PersistentConnection,
                                                        LoggerFactory,
                                                        new TagReadRpcClientHandler(LoggerFactory, ComponentContext),
                                                        null, ExchangeDeclareParameters,
                                                        QueueDeclareParameters, "TestEventBusRpcRead", CancellationToken.None);
     _eventBusRpcClient
     .SubscribeRpcClient <TagReadIntegrationEventReply, TagReadRpcClientHandler>("Test.automation.read.client.test");
 }
예제 #2
0
 private void StartClient()
 {
     _eventBusRpcClient = new EventBusRabbitMqRpcClient(PersistentConnection, LoggerFactory,
                                                        new TestRpcClientHandler(LoggerFactory, ComponentContext), null, ExchangeDeclareParameters, QueueDeclareParameters, "ClientTest", CancellationToken.None);
     _eventBusRpcClient.SubscribeRpcClient <TestIntegrationEventReply, TestRpcClientHandler>("pippo.client");
 }