Skip to content

Commit

Permalink
Use CreateTempSubdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Jan 3, 2025
1 parent 29a8262 commit a8e6fe7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ public static IResourceBuilder<AzureServiceBusResource> RunAsEmulator(this IReso
}

// Add emulator container
var configHostFile = Path.Combine(Path.GetTempPath(), "AspireServiceBusEmulator", Path.GetRandomFileName() + ".json");

Directory.CreateDirectory(Path.GetDirectoryName(configHostFile)!);
var configHostFile = Path.Combine(Directory.CreateTempSubdirectory("AspireServiceBusEmulator").FullName, "Config.json");

var password = PasswordGenerator.Generate(16, true, true, true, true, 0, 0, 0, 0);

Expand Down

0 comments on commit a8e6fe7

Please sign in to comment.