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