Ejemplo n.º 1
0
        private static int GetMaxConnections(AppConfig appConfig, TracksSourceService service)
        {
            switch (service)
            {
            case TracksSourceService.Yandex:
                return(appConfig.MaxConnectionsYandex);

            default:
                return(3);
            }
        }
Ejemplo n.º 2
0
 public SemaphoreSlim GetSemaphoreForService(TracksSourceService service)
 {
     return(_semaphores[service]);
 }