예제 #1
0
        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);
        }
예제 #2
0
        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);
        }