public async Task CopyFileAndConnectAtStartup()
        {
            await Task.Yield();

            _clientCache = new GrpcCopyClientCache(_context, new GrpcCopyClientCacheConfiguration()
            {
                ResourcePoolConfiguration = new BuildXL.Cache.ContentStore.Utils.ResourcePoolConfiguration()
                {
                    MaximumResourceCount = 1024,
                },
                GrpcCopyClientConfiguration = new GrpcCopyClientConfiguration()
                {
                    PropagateCallingMachineName = true,

                    ConnectOnStartup = true,
                },
                ResourcePoolVersion = GrpcCopyClientCacheConfiguration.PoolVersion.V2,
            });

            await CopyExistingFile();
        }
Example #2
0
 public GrpcCopyContentTests()
     : base(() => new PassThroughFileSystem(TestGlobal.Logger), TestGlobal.Logger)
 {
     _context     = new Context(Logger);
     _clientCache = new GrpcCopyClientCache(_context, maxClientCount: 65536);
 }