Skip to content

Commit 7d0c9c2

Browse files
authored
[create-pull-request] automated change
1 parent 9918f8b commit 7d0c9c2

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs

+9
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,15 @@ public sealed partial class AzurePublisherOptions : Publishing.PublishingOptions
219219
{
220220
}
221221

222+
[System.Diagnostics.CodeAnalysis.Experimental("ASPIREAZURE001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
223+
public sealed partial class AzurePublishingContext
224+
{
225+
public global::Azure.Provisioning.Infrastructure MainInfrastructure;
226+
public AzurePublishingContext(AzurePublisherOptions publisherOptions, AzureProvisioningOptions provisioningOptions, Microsoft.Extensions.Logging.ILogger logger) { }
227+
228+
public System.Threading.Tasks.Task WriteModelAsync(ApplicationModel.DistributedApplicationModel model, System.Threading.CancellationToken cancellationToken = default) { throw null; }
229+
}
230+
222231
public sealed partial class AzureResourceInfrastructure : global::Azure.Provisioning.Infrastructure
223232
{
224233
internal AzureResourceInfrastructure() : base(default!) { }

src/Aspire.Hosting/api/Aspire.Hosting.cs

+13
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,9 @@ public static ApplicationModel.IResourceBuilder<T> WithUrl<T>(this ApplicationMo
564564
public static ApplicationModel.IResourceBuilder<T> WithUrlForEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, string endpointName, System.Action<ApplicationModel.ResourceUrlAnnotation> callback)
565565
where T : ApplicationModel.IResource { throw null; }
566566

567+
public static ApplicationModel.IResourceBuilder<T> WithUrlForEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, string endpointName, System.Func<ApplicationModel.EndpointReference, ApplicationModel.ResourceUrlAnnotation> callback)
568+
where T : ApplicationModel.IResourceWithEndpoints { throw null; }
569+
567570
public static ApplicationModel.IResourceBuilder<T> WithUrls<T>(this ApplicationModel.IResourceBuilder<T> builder, System.Action<ApplicationModel.ResourceUrlsCallbackContext> callback)
568571
where T : ApplicationModel.IResource { throw null; }
569572

@@ -1746,6 +1749,8 @@ public sealed partial record ResourceStateSnapshot(string Text, string? Style)
17461749
public sealed partial class ResourceUrlAnnotation : IResourceAnnotation
17471750
{
17481751
public int? DisplayOrder;
1752+
public UrlDisplayLocation DisplayLocation { get { throw null; } set { } }
1753+
17491754
public string? DisplayText { get { throw null; } set { } }
17501755

17511756
public EndpointReference? Endpoint { get { throw null; } init { } }
@@ -1775,6 +1780,8 @@ public ResourceUrlsCallbackContext(DistributedApplicationExecutionContext execut
17751780
public IResource Resource { get { throw null; } }
17761781

17771782
public System.Collections.Generic.List<ResourceUrlAnnotation> Urls { get { throw null; } }
1783+
1784+
public EndpointReference? GetEndpoint(string name) { throw null; }
17781785
}
17791786

17801787
public sealed partial class UpdateCommandStateContext
@@ -1784,6 +1791,12 @@ public sealed partial class UpdateCommandStateContext
17841791
public required System.IServiceProvider ServiceProvider { get { throw null; } init { } }
17851792
}
17861793

1794+
public enum UrlDisplayLocation
1795+
{
1796+
SummaryAndDetails = 0,
1797+
DetailsOnly = 1
1798+
}
1799+
17871800
public sealed partial record UrlDisplayPropertiesSnapshot(string DisplayName = "", int SortOrder = 0)
17881801
{
17891802
}

0 commit comments

Comments
 (0)