public CamoranConsumer CreateConsumer(Guid id) { ClientConfig config = new ClientConfig { Address = _address, Port = _port }; var inner = new Client_byHelios <ConsumerRequest, ConsumerResponse>(id, config); var producer = new CamoranConsumer(id, config, inner); return(producer); }
public CamoranProducer CreateProducer() { ClientConfig config = new ClientConfig { Address = _address, Port = _port }; var producerId = Guid.NewGuid(); var inner = new Client_byHelios <ProducerRequest, ProducerResponse>(producerId, config); var producer = new CamoranProducer(producerId, config, inner); return(producer); }