public static AmqpSessionSettings Create(Begin begin) { AmqpSessionSettings settings = new AmqpSessionSettings(); settings.IncomingWindow = begin.OutgoingWindow; settings.OutgoingWindow = begin.IncomingWindow; settings.HandleMax = Math.Min(settings.HandleMax.Value, begin.HandleMax()); return settings; }
public AmqpSession CreateSession(AmqpSessionSettings sessionSettings) { if (this.IsClosing()) { throw new InvalidOperationException(SRClient.CreateSessionOnClosingConnection); } AmqpSession session = this.SessionFactory.CreateSession(this, sessionSettings); this.AddSession(session, null); return session; }
public AmqpSession(AmqpConnection connection, AmqpSessionSettings settings, ILinkFactory linkFactory) { Fx.Assert(connection != null, "connection must not be null"); Fx.Assert(settings != null, "settings must not be null"); this.connection = connection; this.settings = settings; this.linkFactory = linkFactory; this.State = AmqpObjectState.Start; this.links = new Dictionary<string, AmqpLink>(); this.linksByLocalHandle = new HandleTable<AmqpLink>(uint.MaxValue); this.linksByRemoteHandle = new HandleTable<AmqpLink>(uint.MaxValue); this.outgoingChannel = new OutgoingSessionChannel(this); this.incomingChannel = new IncomingSessionChannel(this); this.diagnostics = new Diagnostics(); }
public AmqpSessionSettings Clone() { AmqpSessionSettings settings = new AmqpSessionSettings(); settings.DispositionThreshold = this.DispositionThreshold; settings.IncomingBufferSize = this.IncomingBufferSize; settings.OutgoingBufferSize = this.OutgoingBufferSize; settings.InitialDeliveryId = this.InitialDeliveryId; settings.NextOutgoingId = this.NextOutgoingId; settings.IncomingWindow = this.IncomingWindow; settings.OutgoingWindow = this.OutgoingWindow; settings.HandleMax = this.HandleMax; settings.OfferedCapabilities = this.OfferedCapabilities; settings.DesiredCapabilities = this.DesiredCapabilities; settings.Properties = this.Properties; return settings; }
AmqpSession ISessionFactory.CreateSession(AmqpConnection connection, AmqpSessionSettings sessionSettings) { return new AmqpSession(this, sessionSettings, this.amqpSettings.RuntimeProvider); }
AmqpSession ISessionFactory.CreateSession(AmqpConnection connection, AmqpSessionSettings settings) { throw new NotImplementedException(); }
protected AmqpSession(string type, AmqpConnection connection, AmqpSessionSettings settings, ILinkFactory linkFactory) : base(type) { this.connection = connection; this.settings = settings; this.linkFactory = linkFactory; }
protected AmqpSession(string type, AmqpConnection connection, AmqpSessionSettings settings) : this(type, connection, settings, null) { }
protected AmqpSession(AmqpConnection connection, AmqpSessionSettings settings) { this.connection = connection; this.settings = settings; }
AmqpSession ISessionFactory.CreateSession(AmqpConnection connection, AmqpSessionSettings sessionSettings) { return(new AmqpSession(this, sessionSettings, this.amqpSettings.RuntimeProvider)); }