@@ -564,6 +564,9 @@ public static ApplicationModel.IResourceBuilder<T> WithUrl<T>(this ApplicationMo
564
564
public static ApplicationModel . IResourceBuilder < T > WithUrlForEndpoint < T > ( this ApplicationModel . IResourceBuilder < T > builder , string endpointName , System . Action < ApplicationModel . ResourceUrlAnnotation > callback )
565
565
where T : ApplicationModel . IResource { throw null ; }
566
566
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
+
567
570
public static ApplicationModel . IResourceBuilder < T > WithUrls < T > ( this ApplicationModel . IResourceBuilder < T > builder , System . Action < ApplicationModel . ResourceUrlsCallbackContext > callback )
568
571
where T : ApplicationModel . IResource { throw null ; }
569
572
@@ -1746,6 +1749,8 @@ public sealed partial record ResourceStateSnapshot(string Text, string? Style)
1746
1749
public sealed partial class ResourceUrlAnnotation : IResourceAnnotation
1747
1750
{
1748
1751
public int ? DisplayOrder ;
1752
+ public UrlDisplayLocation DisplayLocation { get { throw null ; } set { } }
1753
+
1749
1754
public string ? DisplayText { get { throw null ; } set { } }
1750
1755
1751
1756
public EndpointReference ? Endpoint { get { throw null ; } init { } }
@@ -1775,6 +1780,8 @@ public ResourceUrlsCallbackContext(DistributedApplicationExecutionContext execut
1775
1780
public IResource Resource { get { throw null ; } }
1776
1781
1777
1782
public System . Collections . Generic . List < ResourceUrlAnnotation > Urls { get { throw null ; } }
1783
+
1784
+ public EndpointReference ? GetEndpoint ( string name ) { throw null ; }
1778
1785
}
1779
1786
1780
1787
public sealed partial class UpdateCommandStateContext
@@ -1784,6 +1791,12 @@ public sealed partial class UpdateCommandStateContext
1784
1791
public required System . IServiceProvider ServiceProvider { get { throw null ; } init { } }
1785
1792
}
1786
1793
1794
+ public enum UrlDisplayLocation
1795
+ {
1796
+ SummaryAndDetails = 0 ,
1797
+ DetailsOnly = 1
1798
+ }
1799
+
1787
1800
public sealed partial record UrlDisplayPropertiesSnapshot ( string DisplayName = "" , int SortOrder = 0 )
1788
1801
{
1789
1802
}
0 commit comments