<commit_before>﻿// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.ServiceBus.Amqp
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.Azure.Amqp;
    using Microsoft.Azure.ServiceBus.Core;

    internal class MessageSession : MessageReceiver, IMessageSession
    {
        public MessageSession(string sessionId, DateTime lockedUntilUtc, MessageReceiver innerMessageReceiver, RetryPolicy retryPolicy)
            : base(innerMessageReceiver.ReceiveMode, innerMessageReceiver.OperationTimeout, retryPolicy)
        {
            this.SessionId = sessionId;
            this.LockedUntilUtc = lockedUntilUtc;
            this.InnerMessageReceiver = innerMessageReceiver ?? throw Fx.Exception.ArgumentNull(nameof(innerMessageReceiver));
            this.ReceiveMode = innerMessageReceiver.ReceiveMode;
        }

        /// <summary>
        /// Gets the DateTime that the current session is locked until.
        /// </summary>
        public new DateTime LockedUntilUtc
        {
            get => this.InnerMessageReceiver.LockedUntilUtc;
            set => this.InnerMessageReceiver.LockedUntilUtc = value;
        }
<commit_msg>Initialize Receivers before initializing sessionid<commit_after>﻿// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.ServiceBus.Amqp
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.Azure.Amqp;
    using Microsoft.Azure.ServiceBus.Core;

    internal class MessageSession : MessageReceiver, IMessageSession
    {
        public MessageSession(string sessionId, DateTime lockedUntilUtc, MessageReceiver innerMessageReceiver, RetryPolicy retryPolicy)
            : base(innerMessageReceiver.ReceiveMode, innerMessageReceiver.OperationTimeout, retryPolicy)
        {
            this.InnerMessageReceiver = innerMessageReceiver ?? throw Fx.Exception.ArgumentNull(nameof(innerMessageReceiver));
            this.SessionId = sessionId;
            this.LockedUntilUtc = lockedUntilUtc;            
            this.ReceiveMode = innerMessageReceiver.ReceiveMode;
        }

        /// <summary>
        /// Gets the DateTime that the current session is locked until.
        /// </summary>
        public new DateTime LockedUntilUtc
        {
            get => this.InnerMessageReceiver.LockedUntilUtc;
            set => this.InnerMessageReceiver.LockedUntilUtc = value;
        }

{'fraction_non_alphanumeric': 0.07328691828508611, 'fraction_numerical': 0.0, 'mean_word_length': 2.9055793991416308, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2487782', 'n_tokens_mistral': 658, 'n_tokens_neox': 656, 'n_words': 174}