Skip to content
Docs Try Aspire

IAspireStore Methods

Interface Methods 1 member
Represents a store for managing files in the Aspire hosting environment that can be reused across runs.
GetFileNameWithContent(string, Stream) Section titled GetFileNameWithContent(string, Stream) abstract 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.
public interface IAspireStore
{
public abstract string GetFileNameWithContent(
string filenameTemplate,
Stream contentStream)
{
// ...
}
}
filenameTemplate string A file name to base the result on.
contentStream Stream A stream containing the content.
string A deterministic file path with the same content as the provided stream.