PushRuntimeSettings GetDequeueLimitationsForReceivePipeline()
{
var transportConfig = settings.GetConfigSection<TransportConfig>();
if (transportConfig != null && transportConfig.MaximumConcurrencyLevel != 0)
{
throw new NotSupportedException($"The TransportConfig.MaximumConcurrencyLevel has been removed. Remove the '{nameof(TransportConfig.MaximumMessageThroughputPerSecond)}' attribute from the '{nameof(TransportConfig)}' configuration section and use 'EndpointConfiguration.LimitMessageProcessingConcurrencyTo' instead.");
}
MessageProcessingOptimizationExtensions.ConcurrencyLimit concurrencyLimit;
if (settings.TryGet(out concurrencyLimit))
{
return new PushRuntimeSettings(concurrencyLimit.MaxValue);
}
return PushRuntimeSettings.Default;
}