public NmsMessageProducer(Id producerId, NmsSession session, IDestination destination) { this.session = session; Info = new ProducerInfo(producerId, session.SessionInfo.Id) { Destination = destination }; }
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(); }