Skip to content
Docs Try Aspire

AspireStoreExtensions Methods

Class Methods 1 member
Provides extension methods for IDistributedApplicationBuilder to create an IAspireStore instance.
GetFileNameWithContent(IAspireStore, string, string) Section titled GetFileNameWithContent(IAspireStore, string, string) extension string
Gets a deterministic file path that is a copy of the sourceFilename. The resulting file name will depend on the content of the file.
public static class AspireStoreExtensions
{
public static string GetFileNameWithContent(
this IAspireStore aspireStore,
string filenameTemplate,
string sourceFilename)
{
// ...
}
}
aspireStore IAspireStore The IAspireStore instance.
filenameTemplate string A file name to base the result on.
sourceFilename string An existing file.
string A deterministic file path with the same content as sourceFilename.
FileNotFoundException Thrown when the source file does not exist.