Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, BicepOutputReference bicepOutputReference)
where T : IResourceWithEnvironment
{
builder.WithResourceRelationship(bicepOutputReference.Resource);
builder.WithReferenceRelationship(bicepOutputReference.Resource);

return builder.WithEnvironment(ctx =>
{
Expand Down Expand Up @@ -208,7 +208,7 @@
{
BicepIdentifierHelpers.ThrowIfInvalid(name);

builder.WithResourceRelationship(value);
builder.WithReferenceRelationship(value);

builder.Resource.Parameters[name] = value;
return builder;
Expand All @@ -227,7 +227,7 @@
{
BicepIdentifierHelpers.ThrowIfInvalid(name);

builder.WithResourceRelationship(value.Resource);
builder.WithReferenceRelationship(value.Resource);

builder.Resource.Parameters[name] = value.Resource;
return builder;
Expand All @@ -246,7 +246,7 @@
{
BicepIdentifierHelpers.ThrowIfInvalid(name);

builder.WithResourceRelationship(value.Resource);
builder.WithReferenceRelationship(value.Resource);

builder.Resource.Parameters[name] = value;
return builder;
Expand All @@ -265,7 +265,7 @@
{
BicepIdentifierHelpers.ThrowIfInvalid(name);

builder.WithResourceRelationship(value);

Check failure on line 268 in src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs

View check run for this annotation

Azure Pipelines / dotnet.aspire (Build Linux)

src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs#L268

src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs(268,17): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IResourceBuilder<T>' does not contain a definition for 'WithResourceRelationship' and no accessible extension method 'WithResourceRelationship' accepting a first argument of type 'IResourceBuilder<T>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 268 in src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs

View check run for this annotation

Azure Pipelines / dotnet.aspire

src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs#L268

src/Aspire.Hosting.Azure/AzureBicepResourceExtensions.cs(268,17): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'IResourceBuilder<T>' does not contain a definition for 'WithResourceRelationship' and no accessible extension method 'WithResourceRelationship' accepting a first argument of type 'IResourceBuilder<T>' could be found (are you missing a using directive or an assembly reference?)

builder.Resource.Parameters[name] = value;
return builder;
Expand All @@ -284,7 +284,7 @@
{
BicepIdentifierHelpers.ThrowIfInvalid(name);

builder.WithResourceRelationship(value.Resource);
builder.WithReferenceRelationship(value.Resource);

builder.Resource.Parameters[name] = value;
return builder;
Expand Down
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/ConnectionStringBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static IResourceBuilder<ConnectionStringResource> AddConnectionString(thi
{
var cs = new ConnectionStringResource(name, connectionStringExpression);
return builder.AddResource(cs)
.WithResourceRelationship(connectionStringExpression)
.WithReferenceRelationship(connectionStringExpression)
.WithInitialState(new CustomResourceSnapshot
{
ResourceType = "ConnectionString",
Expand Down
22 changes: 11 additions & 11 deletions src/Aspire.Hosting/ResourceBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> bu

var expression = value.GetExpression();

builder.WithResourceRelationship(expression);
builder.WithReferenceRelationship(expression);

return builder.WithEnvironment(context =>
{
Expand All @@ -75,7 +75,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> bu
ArgumentNullException.ThrowIfNull(name);
ArgumentNullException.ThrowIfNull(value);

builder.WithResourceRelationship(value);
builder.WithReferenceRelationship(value);

return builder.WithEnvironment(context =>
{
Expand Down Expand Up @@ -144,7 +144,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> bu
ArgumentNullException.ThrowIfNull(name);
ArgumentNullException.ThrowIfNull(endpointReference);

builder.WithResourceRelationship(endpointReference.Resource);
builder.WithReferenceRelationship(endpointReference.Resource);

return builder.WithEnvironment(context =>
{
Expand All @@ -166,7 +166,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> bu
ArgumentNullException.ThrowIfNull(name);
ArgumentNullException.ThrowIfNull(parameter);

builder.WithResourceRelationship(parameter.Resource);
builder.WithReferenceRelationship(parameter.Resource);

return builder.WithEnvironment(context =>
{
Expand All @@ -192,7 +192,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(
ArgumentNullException.ThrowIfNull(envVarName);
ArgumentNullException.ThrowIfNull(resource);

builder.WithResourceRelationship(resource.Resource);
builder.WithReferenceRelationship(resource.Resource);

return builder.WithEnvironment(context =>
{
Expand Down Expand Up @@ -363,7 +363,7 @@ public static IResourceBuilder<TDestination> WithReference<TDestination>(this IR
var resource = source.Resource;
connectionName ??= resource.Name;

builder.WithResourceRelationship(resource);
builder.WithReferenceRelationship(resource);

return builder.WithEnvironment(context =>
{
Expand Down Expand Up @@ -469,7 +469,7 @@ private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourc
endpointReferenceAnnotation.EndpointNames.Add(endpointName);
}

builder.WithResourceRelationship(resourceWithEndpoints);
builder.WithReferenceRelationship(resourceWithEndpoints);
}

/// <summary>
Expand Down Expand Up @@ -1679,7 +1679,7 @@ public static IResourceBuilder<T> WithRelationship<T>(
/// <param name="builder">The resource builder.</param>
/// <param name="resource">The resource that the relationship is to.</param>
/// <returns>A resource builder.</returns>
public static IResourceBuilder<T> WithResourceRelationship<T>(
public static IResourceBuilder<T> WithReferenceRelationship<T>(
this IResourceBuilder<T> builder,
IResource resource) where T : IResource
{
Expand All @@ -1696,7 +1696,7 @@ public static IResourceBuilder<T> WithResourceRelationship<T>(
/// <param name="builder">The resource builder.</param>
/// <param name="expression">The reference expression.</param>
/// <returns>A resource builder.</returns>
public static IResourceBuilder<T> WithResourceRelationship<T>(
public static IResourceBuilder<T> WithReferenceRelationship<T>(
this IResourceBuilder<T> builder,
ReferenceExpression expression) where T : IResource
{
Expand All @@ -1715,7 +1715,7 @@ private static void WalkAndLinkResourceReferences<T>(IResourceBuilder<T> builder

void AddReference(IResource resource)
{
builder.WithResourceRelationship(resource);
builder.WithReferenceRelationship(resource);
}

void Walk(object value)
Expand Down Expand Up @@ -1755,7 +1755,7 @@ void Walk(object value)
/// <param name="builder">The resource builder.</param>
/// <param name="resourceBuilder">The resource builder that the relationship is to.</param>
/// <returns>A resource builder.</returns>
public static IResourceBuilder<T> WithResourceRelationship<T>(
public static IResourceBuilder<T> WithReferenceRelationship<T>(
this IResourceBuilder<T> builder,
IResourceBuilder<IResource> resourceBuilder) where T : IResource
{
Expand Down
Loading