/// <summary> /// Starts call to the services specified by the service and token ids on a background thread. /// </summary> /// <param name="serviceOrTokenIds">Ids for the services and/or tokens to retrieve information for.</param> /// <param name="cacheRegion">Cache region to use for storing and retrieving values, if required by the services called.</param> /// <param name="timeout">Maximum time the services should wait for answers from external services.</param> public void StartBackgroundServiceCalls(IEnumerable <Guid> serviceOrTokenIds, string cacheRegion, TimeSpan timeout) { _taskScheduler.QueueBackgroundWorkItem(async token => { await CallServicesAsync(serviceOrTokenIds, cacheRegion, timeout); }); }