2 instantiations of AspireStore
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
270
return new
AspireStore
(Path.Combine(aspireDir, ".aspire"));
Aspire.Hosting.Tests (1)
AspireStoreTests.cs (1)
126
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)
205
[
AspireStore
.AspireStorePathKeyName] = aspireDir
260
_innerBuilder.Services.AddSingleton<IAspireStore,
AspireStore
>(sp =>
263
var aspireDir = configuration[
AspireStore
.AspireStorePathKeyName];
267
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)
34
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();
58
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();
132
builder.Configuration[
AspireStore
.AspireStorePathKeyName] = Path.GetTempPath();