/// <inheritdoc />
 public TestInProcessServiceClientCache(
     ILogger logger,
     IAbsFileSystem fileSystem,
     Func <AbsolutePath, ICache> contentStoreFactory,
     LocalServerConfiguration contentServerConfiguration,
     ServiceClientContentStoreConfiguration clientConfiguration)
 {
     _server = new LocalCacheServer(fileSystem, logger, clientConfiguration.Scenario, contentStoreFactory, contentServerConfiguration, Capabilities.All);
     _client = new ServiceClientCache(logger, fileSystem, clientConfiguration);
     SetThreadPoolSizes();
 }
Example #2
0
 /// <inheritdoc />
 public TestInProcessServiceClientCache(
     ILogger logger,
     IAbsFileSystem fileSystem,
     Func <AbsolutePath, ICache> contentStoreFactory,
     LocalServerConfiguration contentServerConfiguration,
     ServiceClientContentStoreConfiguration clientConfiguration)
 {
     // Initialize with fewer threads for tests
     GrpcEnvironment.InitializeIfNeeded(3);
     _server = new LocalCacheService(logger, fileSystem, clientConfiguration.Scenario, contentStoreFactory, contentServerConfiguration);
     _client = new ServiceClientCache(logger, fileSystem, clientConfiguration);
     SetThreadPoolSizes();
 }