2 instantiations of AspireStore
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
271
return new
AspireStore
(Path.Combine(aspireDir, ".aspire"));
Aspire.Hosting.Tests (1)
AspireStoreTests.cs (1)
127
Assert.ThrowsAny<Exception>(() => new
AspireStore
(basePath!));
9 references to AspireStore
Aspire.Hosting (6)
ApplicationModel\AspireStore.cs (2)
16
/// Initializes a new instance of the <see cref="
AspireStore
"/> class with the specified base path.
19
/// <returns>A new instance of <see cref="
AspireStore
"/>.</returns>
DistributedApplicationBuilder.cs (4)
206
[
AspireStore
.AspireStorePathKeyName] = aspireDir
261
_innerBuilder.Services.AddSingleton<IAspireStore,
AspireStore
>(sp =>
264
var aspireDir = configuration[
AspireStore
.AspireStorePathKeyName];
268
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();
133
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();