# IAspireStore

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/IAspireStore.cs)

Represents a store for managing files in the Aspire hosting environment that can be reused across runs.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public interface IAspireStore
{
    // ...
}
```

## Remarks

The store is created in the ./obj folder of the Application Host. If the ASPIRE__STORE__PATH environment variable is set this will be used instead. The store is specific to a [IDistributedApplicationBuilder](/reference/api/csharp/aspire.hosting/idistributedapplicationbuilder.md) instance such that each application can't conflict with others. A .aspire prefix is also used to ensure that the folder can be deleted without impacting unrelated files.

## Properties

- [BasePath](/reference/api/csharp/aspire.hosting/iaspirestore/properties.md#basepath) : `string` `abstract` `get` -- Gets the base path of this store.

## Methods

- [GetFileNameWithContent(string, Stream)](/reference/api/csharp/aspire.hosting/iaspirestore/methods.md#getfilenamewithcontent-string-stream) : `string` `abstract` -- Gets a deterministic file path that is a copy of the content from the provided stream. The resulting file name will depend on the content of the stream.
