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); }
void UpdateHandleTable(Begin begin) { this.settings.HandleMax = Math.Min(this.settings.HandleMax(), begin.HandleMax()); this.linksByLocalHandle.SetMaxHandle(this.settings.HandleMax.Value); this.linksByRemoteHandle.SetMaxHandle(this.settings.HandleMax.Value); }