7 instantiations of PersistentPortAllocationStore
Aspire.Hosting.Tests (7)
Dcp\AppHostLocalStateStoreTests.cs (6)
79var portAllocationStore = new PersistentPortAllocationStore( 113var portAllocationStore = new PersistentPortAllocationStore( 138var portAllocationStore = new PersistentPortAllocationStore( 152var loggingPortAllocationStore = new PersistentPortAllocationStore( 197var portAllocationStore = new PersistentPortAllocationStore( 221return new PersistentPortAllocationStore(stateStore, NullLogger<PersistentPortAllocationStore>.Instance);
Dcp\DcpExecutorTests.cs (1)
12068return new PersistentPortAllocationStore(stateStore, NullLogger<PersistentPortAllocationStore>.Instance);
24 references to PersistentPortAllocationStore
Aspire.Hosting (4)
Dcp\PersistentPortAllocationStore.cs (1)
12ILogger<PersistentPortAllocationStore> logger)
Dcp\PersistentPortAllocator.cs (2)
20private readonly PersistentPortAllocationStore _store; 30PersistentPortAllocationStore store,
DistributedApplicationBuilder.cs (1)
614_innerBuilder.Services.AddSingleton<PersistentPortAllocationStore>();
Aspire.Hosting.Tests (20)
Dcp\AppHostLocalStateStoreTests.cs (16)
22var firstStore = CreatePortAllocationStore(configuration); 23var secondStore = CreatePortAllocationStore(configuration); 51var store = CreatePortAllocationStore(configuration); 79var portAllocationStore = new PersistentPortAllocationStore( 81NullLogger<PersistentPortAllocationStore>.Instance); 113var portAllocationStore = new PersistentPortAllocationStore( 115new TestLogger<PersistentPortAllocationStore>(new TestLoggerFactory(sink, enabled: true))); 138var portAllocationStore = new PersistentPortAllocationStore( 140NullLogger<PersistentPortAllocationStore>.Instance); 152var loggingPortAllocationStore = new PersistentPortAllocationStore( 154NullLogger<PersistentPortAllocationStore>.Instance); 184var initialStore = CreatePortAllocationStore(configuration); 197var portAllocationStore = new PersistentPortAllocationStore( 199NullLogger<PersistentPortAllocationStore>.Instance); 218private static PersistentPortAllocationStore CreatePortAllocationStore(IConfiguration configuration) 221return new PersistentPortAllocationStore(stateStore, NullLogger<PersistentPortAllocationStore>.Instance);
Dcp\DcpExecutorTests.cs (4)
2070var store = CreatePersistentPortAllocationStore(configuration); 12065private static PersistentPortAllocationStore CreatePersistentPortAllocationStore(IConfiguration configuration) 12068return new PersistentPortAllocationStore(stateStore, NullLogger<PersistentPortAllocationStore>.Instance); 12135var persistentPortAllocationStore = CreatePersistentPortAllocationStore(configuration);