16 instantiations of ProjectResourceOptions
Aspire.Hosting (3)
ProjectResourceBuilderExtensions.cs (3)
295var options = new ProjectResourceOptions(); 344var options = new ProjectResourceOptions(); 447var options = new ProjectResourceOptions();
Aspire.Hosting.Dotnet (1)
DotnetProjectHostingExtensions.cs (1)
366var options = new ProjectResourceOptions();
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFBuildCustomizationWarningTests.cs (1)
43.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true })
EFBuildReadinessTests.cs (1)
96.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true })
Aspire.Hosting.Tests (10)
Dcp\ResourceSnapshotBuilderTests.cs (2)
96var configuredProject = project.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true }); 124project.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true });
ProjectResourceBuilderExtensionTests.cs (8)
70() => executable.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true })); 90() => project.WithProjectDefaults(new ProjectResourceOptions { LaunchProfileName = "https" })); 105.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true }); 120() => project.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true })); 242project.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true }); 330project.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true }); 417.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true }) 454.WithProjectDefaults(new ProjectResourceOptions { ExcludeLaunchProfile = true })
19 references to ProjectResourceOptions
Aspire.Hosting (13)
ProjectResourceBuilderExtensions.cs (13)
129[AspireUnion(typeof(string), typeof(ProjectResourceOptions))] object? launchProfileOrOptions = null) 139ProjectResourceOptions options => builder.AddProject(name, projectPath, configure => ApplyProjectResourceOptions(configure, options)), 289public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<ProjectResourceOptions> configure) where TProject : IProjectMetadata, new() 295var options = new ProjectResourceOptions(); 337public static IResourceBuilder<ProjectResource> AddProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath, Action<ProjectResourceOptions> configure) 344var options = new ProjectResourceOptions(); 403ProjectResourceOptions? options = null) 440public static IResourceBuilder<CSharpAppResource> AddCSharpApp(this IDistributedApplicationBuilder builder, [ResourceName] string name, string path, Action<ProjectResourceOptions> configure) 447var options = new ProjectResourceOptions(); 479private static void ApplyProjectResourceOptions(ProjectResourceOptions target, ProjectResourceOptions source) 530public static IResourceBuilder<TProjectResource> WithProjectDefaults<TProjectResource>(this IResourceBuilder<TProjectResource> builder, ProjectResourceOptions options) 554$"Pass {nameof(ProjectResourceOptions)} to the method that adds the resource instead.");
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
2624var legacyTypeId = AtsTypeMapping.DeriveTypeId(typeof(ProjectResourceOptions)); 2649LegacyOptions = GetInterface(nameof(ProjectResourceOptions)),
Aspire.Hosting.Dotnet (3)
DotnetProjectHostingExtensions.cs (3)
359public static IResourceBuilder<DotnetProjectResource> AddDotnetProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string path, Action<ProjectResourceOptions> configure) 366var options = new ProjectResourceOptions(); 540private static void ApplyProjectResourceOptions(ProjectResourceOptions target, DotnetProjectOptions source)
Aspire.Hosting.Tests (1)
KestrelConfigTests.cs (1)
345Action<ProjectResourceOptions>? configure = null) where TProject : IProjectMetadata, new()