AspireStoreExtensions Methods
ClassMethods1 member
Provides extension methods for
IDistributedApplicationBuilder to create an IAspireStore instance. GetFileNameWithContent(IAspireStore, string, string)Section titled GetFileNameWithContent(IAspireStore, string, string)extensionstring 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) { // ... }}Parameters
aspireStoreIAspireStoreThe IAspireStore instance.filenameTemplatestringA file name to base the result on.sourceFilenamestringAn existing file.Returns
stringA deterministic file path with the same content as sourceFilename.Exceptions
FileNotFoundExceptionThrown when the source file does not exist.