public async Task Start() { if (queueAdapter.Direction.Equals(StreamProviderDirection.ReadOnly) || queueAdapter.Direction.Equals(StreamProviderDirection.ReadWrite)) { await providerRuntime.StartPullingAgents(Name, balancerType, adapterFactory, queueAdapter, getQueueMsgsTimerPeriod, initQueueTimeout); } }