private static int GetMaxConnections(AppConfig appConfig, TracksSourceService service) { switch (service) { case TracksSourceService.Yandex: return(appConfig.MaxConnectionsYandex); default: return(3); } }
public SemaphoreSlim GetSemaphoreForService(TracksSourceService service) { return(_semaphores[service]); }