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"); }
private void StartClient() { _eventBusRpcClient = new EventBusRabbitMqRpcClient(PersistentConnection, LoggerFactory, new TestRpcClientHandler(LoggerFactory, ComponentContext), null, ExchangeDeclareParameters, QueueDeclareParameters, "ClientTest", CancellationToken.None); _eventBusRpcClient.SubscribeRpcClient <TestIntegrationEventReply, TestRpcClientHandler>("pippo.client"); }