Skip to content

Commit 49598b0

Browse files
Meir017Copilot
andcommitted
Add [ResourceName] attribute to name parameters
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3da1b5e commit 49598b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DevProxy.Hosting/DevProxyResourceBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class DevProxyResourceBuilderExtensions
1818
/// <returns>A resource builder for the DevProxy executable resource.</returns>
1919
public static IResourceBuilder<DevProxyExecutableResource> AddDevProxyExecutable(
2020
this IDistributedApplicationBuilder builder,
21-
string name)
21+
[ResourceName] string name)
2222
{
2323
var resource = new DevProxyExecutableResource(name);
2424

@@ -68,7 +68,7 @@ public static IResourceBuilder<DevProxyExecutableResource> WithUrlsToWatch(
6868
/// <returns>A resource builder for the DevProxy container resource.</returns>
6969
public static IResourceBuilder<DevProxyContainerResource> AddDevProxyContainer(
7070
this IDistributedApplicationBuilder builder,
71-
string name)
71+
[ResourceName] string name)
7272
{
7373
var resource = new DevProxyContainerResource(name);
7474

0 commit comments

Comments
 (0)