public BaseBus(IChannel channel, ISerializer serializer, ISubcriptionBinder binder) { _channel = channel; _serializer = serializer; _binder = binder; _isRunning = false; _initialOptions = GetDefaultOptions(); _runningOptions = null; }
private void ConfigureRunningOptions() { _runningOptions = new BusOptions(); foreach (var key in _initialOptions.SubscriptionsOptions.Keys) { var newSubOption = new SubscriptionOptions(); var initSubOption = _initialOptions.SubscriptionsOptions[key]; newSubOption.MaxConcurrentCount = initSubOption.MaxConcurrentCount ?? _initialOptions.DefaultSubscriptionOptions.MaxConcurrentCount; _runningOptions.SubscriptionsOptions.Add(key, newSubOption); } }