AzureConstructResource.GetBicepTemplateFile(String, Boolean) Method

Definition

Gets the path to the bicep file. If the template is a string or embedded resource, it will be written to a temporary file.

C#
public override Aspire.Hosting.Azure.BicepTemplateFile GetBicepTemplateFile(string? directory = default, bool deleteTemporaryFileOnDispose = true);

Parameters

directory
String

The directory where the bicep file will be written to (if it's a temporary file)

deleteTemporaryFileOnDispose
Boolean

A boolean that determines if the file should be deleted on disposal of the BicepTemplateFile.

Returns

A BicepTemplateFile that represents the bicep file.

Applies to

Producto Versiones
.NET Aspire 8.0.0