42 references to ReadAllTextAsync
Aspire.Cli.Tests (1)
Projects\ProjectLocatorTests.cs (1)
237var settingsJson = await File.ReadAllTextAsync(settingsFile.FullName);
Aspire.Hosting (1)
Devcontainers\DevcontainerSettingsWriter.cs (1)
68var settingsContent = await File.ReadAllTextAsync(settingsPath, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
189? JsonNode.Parse(await File.ReadAllTextAsync(userSecretsPath, cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Azure.Tests (3)
AzureManifestUtils.cs (1)
42var bicepText = await File.ReadAllTextAsync(Path.Combine(manifestDir, path));
AzureResourceOptionsTests.cs (2)
42var sbBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sb.module.bicep")); 44var sqlBicep = await File.ReadAllTextAsync(Path.Combine(tempDir.FullName, "sql-server.module.bicep"));
Aspire.Hosting.Containers.Tests (1)
DockerSocketBindMountTests.cs (1)
51var infoContent = await File.ReadAllTextAsync(infoFile);
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
102var content = await File.ReadAllTextAsync(deploymentPath);
Aspire.Hosting.Yarp (1)
YarpServiceExtensions.cs (1)
55contents = await File.ReadAllTextAsync(yarpBuilder.Resource.ConfigFilePath, ct).ConfigureAwait(false);
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (2)
58await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.ContentRoot, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue); 102await Helpers.Retry(async () => await File.ReadAllTextAsync(Path.Combine(result.ContentRoot, "Started.txt")), TimeoutExtensions.DefaultTimeoutValue);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
373var baseline = await File.ReadAllTextAsync(baselineFilePath);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
373var baseline = await File.ReadAllTextAsync(baselineFilePath);
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
146var content = await File.ReadAllTextAsync(projectToLoad.Path);
Testing\RunTestsHandler.cs (1)
179var contents = await File.ReadAllTextAsync(runSettingsPath, cancellationToken);
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiRefreshTests.cs (3)
39Assert.Equal(Content, await File.ReadAllTextAsync(expectedJsonPath), ignoreLineEndingDifferences: true); 69Assert.Equal(Content, await File.ReadAllTextAsync(expectedJsonPath), ignoreLineEndingDifferences: true); 95Assert.Equal(Content, await File.ReadAllTextAsync(expectedJsonPath));
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
GeneratorTests.cs (2)
131var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options); 154var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options);
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
GeneratorTests.cs (7)
87var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 90var golden = await File.ReadAllTextAsync(goldenReportPath); 91var generated = await File.ReadAllTextAsync(generatedReportPath); 113_ = await RunGenerator(await File.ReadAllTextAsync(inputFile), options, reportFileName: goldenFileName); 132var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 156var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 182var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options);
Microsoft.Gen.MetricsReports.Unit.Tests (7)
GeneratorTests.cs (7)
52var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 55var golden = await File.ReadAllTextAsync(goldenReportPath); 56var generated = await File.ReadAllTextAsync(generatedReportPath); 77_ = await RunGenerator(await File.ReadAllTextAsync(inputFile), options, reportFileName: goldenFileName); 92var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 112var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 135var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
359var projectFileContents = await File.ReadAllTextAsync(projectFile);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
359var projectFileContents = await File.ReadAllTextAsync(projectFile);
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
359var projectFileContents = await File.ReadAllTextAsync(projectFile);
Templates.Mvc.Tests (4)
BlazorTemplateTest.cs (3)
179return File.ReadAllTextAsync(singleProjectPath); 187return File.ReadAllTextAsync(multiProjectPath); 196var appRazorText = await File.ReadAllTextAsync(appRazorPath);
src\ProjectTemplates\Shared\Project.cs (1)
359var projectFileContents = await File.ReadAllTextAsync(projectFile);
Templates.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
359var projectFileContents = await File.ReadAllTextAsync(projectFile);