Exemplo n.º 1
0
 public NmsMessageProducer(Id producerId, NmsSession session, IDestination destination)
 {
     this.session = session;
     Info         = new ProducerInfo(producerId, session.SessionInfo.Id)
     {
         Destination = destination
     };
 }
Exemplo n.º 2
0
        public NmsMessageProducer(Id producerId, NmsSession session, IDestination destination)
        {
            this.session = session;
            Info         = new ProducerInfo(producerId, session.SessionInfo.Id)
            {
                Destination = destination
            };

            session.Connection.CreateResource(Info).ConfigureAwait(false).GetAwaiter().GetResult();

            session.Add(this);
        }
 internal MessageProducer(Session ses, IDestination dest) : base(ses, dest)
 {
     producerInfo = new ProducerInfo(ses.ProducerIdGenerator.GenerateId());
     Info         = producerInfo;
     Configure();
 }