2 instantiations of AspireStore
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
357
return new
AspireStore
(Path.Combine(aspireDir, ".aspire"), directoryService);
Aspire.Hosting.Tests (1)
AspireStoreTests.cs (1)
130
Assert.ThrowsAny<Exception>(() => new
AspireStore
(basePath!, directoryService));
9 references to AspireStore
Aspire.Hosting (6)
ApplicationModel\AspireStore.cs (2)
19
/// Initializes a new instance of the <see cref="
AspireStore
"/> class with the specified base path.
23
/// <returns>A new instance of <see cref="
AspireStore
"/>.</returns>
DistributedApplicationBuilder.cs (4)
235
[
AspireStore
.AspireStorePathKeyName] = aspireDir
346
_innerBuilder.Services.AddSingleton<IAspireStore,
AspireStore
>(sp =>
349
var aspireDir = configuration[
AspireStore
.AspireStorePathKeyName];
353
throw new InvalidOperationException($"Could not determine an appropriate location for local storage. Set the {
AspireStore
.AspireStorePathKeyName} setting to a folder where the App Host content should be stored.");
Aspire.Hosting.Tests (3)
AspireStoreTests.cs (3)
35
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();
59
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();
136
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();