/// <summary>
        /// Sets the additional receiver information.
        /// </summary>
        /// <returns>Task.</returns>
        private async Task SetAdditionalReceiverInfo()
        {
            // Get information about the topic/queue for the receiver.
            if (ReceiverInfo.EntityType == EntityType.Topic)
            {
                if (ReceiverInfo.CreateEntityIfNotExists)
                {
                    await Task.Run(() => ManagerClient.CreateTopicIfNotExists(ReceiverInfo.EntityName, ReceiverInfo.EntitySubscriptionName, ReceiverInfo.EntityFilter));
                }

                var topic = await ManagerClient.GetTopicAsync(ReceiverInfo.EntityName);

                var subscription = await ManagerClient.GetSubscriptionAsync(ReceiverInfo.EntityName, ReceiverInfo.EntitySubscriptionName);

                ReceiverInfo.MaxEntitySizeMb = topic.MaxSizeInMB;
                ReceiverInfo.MaxLockDuration = subscription.LockDuration;
            }
            else
            {
                if (ReceiverInfo.CreateEntityIfNotExists)
                {
                    await Task.Run(() => ManagerClient.CreateQueueIfNotExists(ReceiverInfo.EntityName));
                }

                var queue = await ManagerClient.GetQueueAsync(ReceiverInfo.EntityName);

                ReceiverInfo.MaxLockDuration = queue.LockDuration;
                ReceiverInfo.MaxEntitySizeMb = queue.MaxSizeInMB;
            }
        }