@ -840,8 +840,11 @@ namespace DepotDownloader
try
try
{
{
connection = cdnPool . GetConnection ( cts . Token ) ;
connection = cdnPool . GetConnection ( cts . Token ) ;
DebugLog . WriteLine ( "ContentDownloader" , "Authenticating connection to {0}" , connection ) ;
var cdnToken = await cdnPool . AuthenticateConnection ( appId , depot . id , connection ) ;
var cdnToken = await cdnPool . AuthenticateConnection ( appId , depot . id , connection ) ;
DebugLog . WriteLine ( "ContentDownloader" , "Downloading manifest {0} from {1} with {2}" , depot . manifestId , connection , cdnPool . ProxyServer ! = null ? cdnPool . ProxyServer : "no proxy" ) ;
depotManifest = await cdnPool . CDNClient . DownloadManifestAsync ( depot . id , depot . manifestId ,
depotManifest = await cdnPool . CDNClient . DownloadManifestAsync ( depot . id , depot . manifestId ,
connection , cdnToken , depot . depotKey , proxyServer : cdnPool . ProxyServer ) . ConfigureAwait ( false ) ;
connection , cdnToken , depot . depotKey , proxyServer : cdnPool . ProxyServer ) . ConfigureAwait ( false ) ;
@ -1215,8 +1218,11 @@ namespace DepotDownloader
try
try
{
{
connection = cdnPool . GetConnection ( cts . Token ) ;
connection = cdnPool . GetConnection ( cts . Token ) ;
DebugLog . WriteLine ( "ContentDownloader" , "Authenticating connection to {0}" , connection ) ;
var cdnToken = await cdnPool . AuthenticateConnection ( appId , depot . id , connection ) ;
var cdnToken = await cdnPool . AuthenticateConnection ( appId , depot . id , connection ) ;
DebugLog . WriteLine ( "ContentDownloader" , "Downloading chunk {0} from {1} with {2}" , chunkID , connection , cdnPool . ProxyServer ! = null ? cdnPool . ProxyServer : "no proxy" ) ;
chunkData = await cdnPool . CDNClient . DownloadDepotChunkAsync ( depot . id , data ,
chunkData = await cdnPool . CDNClient . DownloadDepotChunkAsync ( depot . id , data ,
connection , cdnToken , depot . depotKey , proxyServer : cdnPool . ProxyServer ) . ConfigureAwait ( false ) ;
connection , cdnToken , depot . depotKey , proxyServer : cdnPool . ProxyServer ) . ConfigureAwait ( false ) ;