# IAspireStore Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [IAspireStore](/reference/api/csharp/aspire.hosting/iaspirestore.md)
- Kind: `Methods`
- Members: `1`

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

## GetFileNameWithContent(string, Stream)

- Name: `GetFileNameWithContent(string, Stream)`
- Modifiers: `abstract`
- Returns: `string`

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.

```csharp
public interface IAspireStore
{
    public abstract string GetFileNameWithContent(
        string filenameTemplate,
        Stream contentStream)
    {
        // ...
    }
}
```

## Parameters

- `filenameTemplate` (`string`)
  A file name to base the result on.
- `contentStream` (`Stream`)
  A stream containing the content.

## Returns

`string` -- A deterministic file path with the same content as the provided stream.
