1616using BuildXL . Cache . ContentStore . Interfaces . Stores ;
1717using BuildXL . Cache . ContentStore . Interfaces . Tracing ;
1818using BuildXL . Cache . ContentStore . Logging ;
19+ using BuildXL . Cache . ContentStore . Tracing . Internal ;
1920using BuildXL . Cache . MemoizationStore . Distributed . Stores ;
2021using BuildXL . Cache . MemoizationStore . Interfaces . Caches ;
2122using BuildXL . Cache . MemoizationStore . Interfaces . Sessions ;
@@ -72,7 +73,7 @@ protected override async Task<ICacheClient> CreateCacheClientAsync(PluginLoggerB
7273 logger . LogMessage ( $ "Using cache namespace '{ cacheContainer } ' as '{ cacheContainerHash } '.") ;
7374
7475#pragma warning disable CA2000 // Dispose objects before losing scope. Expected to be disposed by TwoLevelCache
75- ICache remoteCache = CreateRemoteCache ( cacheContainerHash ) ;
76+ ICache remoteCache = CreateRemoteCache ( new OperationContext ( context , cancellationToken ) , cacheContainerHash ) ;
7677#pragma warning restore CA2000 // Dispose objects before losing scope
7778
7879 ICacheSession remoteCacheSession = await StartCacheSessionAsync ( context , remoteCache , "remote" ) ;
@@ -98,7 +99,7 @@ protected override async Task<ICacheClient> CreateCacheClientAsync(PluginLoggerB
9899 Settings . AsyncCacheMaterialization ) ;
99100 }
100101
101- private static ICache CreateRemoteCache ( string cacheUniverse )
102+ private static ICache CreateRemoteCache ( OperationContext context , string cacheUniverse )
102103 {
103104 string ? connectionString = Environment . GetEnvironmentVariable ( AzureBlobConnectionStringEnvVar ) ;
104105 if ( string . IsNullOrEmpty ( connectionString ) )
@@ -113,7 +114,7 @@ private static ICache CreateRemoteCache(string cacheUniverse)
113114 Universe : cacheUniverse ,
114115 Namespace : "0" ,
115116 RetentionPolicyInDays : null ) ;
116- return AzureBlobStorageCacheFactory . Create ( cacheConfig , new StaticBlobCacheSecretsProvider ( credentials ) ) ;
117+ return AzureBlobStorageCacheFactory . Create ( context , cacheConfig , new StaticBlobCacheSecretsProvider ( credentials ) ) ;
117118 }
118119
119120 private static async Task < ICacheSession > StartCacheSessionAsync ( Context context , ICache cache , string name )
0 commit comments