8
8
//------------------------------------------------------------------------------
9
9
namespace Aspire . Hosting
10
10
{
11
+ public static partial class ConnectionStringBuilderExtensions
12
+ {
13
+ public static ApplicationModel . IResourceBuilder < ConnectionStringResource > AddConnectionString ( this IDistributedApplicationBuilder builder , string name , ApplicationModel . ReferenceExpression connectionStringExpression ) { throw null ; }
14
+ }
15
+
16
+ public sealed partial class ConnectionStringResource : ApplicationModel . Resource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IResource , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , ApplicationModel . IResourceWithoutLifetime
17
+ {
18
+ public ConnectionStringResource ( string name , ApplicationModel . ReferenceExpression connectionStringExpression ) : base ( default ! ) { }
19
+
20
+ public ApplicationModel . ReferenceExpression ConnectionStringExpression { get { throw null ; } }
21
+ }
22
+
11
23
public static partial class ContainerResourceBuilderExtensions
12
24
{
13
25
public static ApplicationModel . IResourceBuilder < ApplicationModel . ContainerResource > AddContainer ( this IDistributedApplicationBuilder builder , string name , string image , string tag ) { throw null ; }
@@ -56,6 +68,9 @@ public static ApplicationModel.IResourceBuilder<T> WithEntrypoint<T>(this Applic
56
68
public static ApplicationModel . IResourceBuilder < T > WithImage < T > ( this ApplicationModel . IResourceBuilder < T > builder , string image , string ? tag = null )
57
69
where T : ApplicationModel . ContainerResource { throw null ; }
58
70
71
+ public static ApplicationModel . IResourceBuilder < T > WithImagePullPolicy < T > ( this ApplicationModel . IResourceBuilder < T > builder , ApplicationModel . ImagePullPolicy pullPolicy )
72
+ where T : ApplicationModel . ContainerResource { throw null ; }
73
+
59
74
public static ApplicationModel . IResourceBuilder < T > WithImageRegistry < T > ( this ApplicationModel . IResourceBuilder < T > builder , string ? registry )
60
75
where T : ApplicationModel . ContainerResource { throw null ; }
61
76
@@ -172,6 +187,8 @@ public partial class DistributedApplicationExecutionContext
172
187
{
173
188
public DistributedApplicationExecutionContext ( DistributedApplicationExecutionContextOptions options ) { }
174
189
190
+ public DistributedApplicationExecutionContext ( DistributedApplicationOperation operation , string publisherName ) { }
191
+
175
192
public DistributedApplicationExecutionContext ( DistributedApplicationOperation operation ) { }
176
193
177
194
public bool IsPublishMode { get { throw null ; } }
@@ -180,15 +197,21 @@ public DistributedApplicationExecutionContext(DistributedApplicationOperation op
180
197
181
198
public DistributedApplicationOperation Operation { get { throw null ; } }
182
199
200
+ public string ? PublisherName { get { throw null ; } set { } }
201
+
183
202
public System . IServiceProvider ServiceProvider { get { throw null ; } }
184
203
}
185
204
186
205
public partial class DistributedApplicationExecutionContextOptions
187
206
{
207
+ public DistributedApplicationExecutionContextOptions ( DistributedApplicationOperation operation , string ? publisherName = null ) { }
208
+
188
209
public DistributedApplicationExecutionContextOptions ( DistributedApplicationOperation operation ) { }
189
210
190
211
public DistributedApplicationOperation Operation { get { throw null ; } }
191
212
213
+ public string ? PublisherName { get { throw null ; } }
214
+
192
215
public System . IServiceProvider ? ServiceProvider { get { throw null ; } set { } }
193
216
}
194
217
@@ -369,6 +392,12 @@ public partial class ProjectResourceOptions
369
392
public string ? LaunchProfileName { get { throw null ; } set { } }
370
393
}
371
394
395
+ public static partial class PublisherDistributedApplicationBuilderExtensions
396
+ {
397
+ public static void AddPublisher < TPublisher , TPublisherOptions > ( this IDistributedApplicationBuilder builder , string name , System . Action < TPublisherOptions > ? configureOptions = null )
398
+ where TPublisher : class , Publishing . IDistributedApplicationPublisher where TPublisherOptions : class { }
399
+ }
400
+
372
401
public static partial class ResourceBuilderExtensions
373
402
{
374
403
public static ApplicationModel . IResourceBuilder < T > AsHttp2Service < T > ( this ApplicationModel . IResourceBuilder < T > builder )
@@ -407,7 +436,10 @@ public static ApplicationModel.IResourceBuilder<T> WithCommand<T>(this Applicati
407
436
public static ApplicationModel . IResourceBuilder < T > WithConnectionStringRedirection < T > ( this ApplicationModel . IResourceBuilder < T > builder , ApplicationModel . IResourceWithConnectionString resource )
408
437
where T : ApplicationModel . IResourceWithConnectionString { throw null ; }
409
438
410
- public static ApplicationModel . IResourceBuilder < T > WithEndpoint < T > ( this ApplicationModel . IResourceBuilder < T > builder , int ? port = null , int ? targetPort = null , string ? scheme = null , string ? name = null , string ? env = null , bool isProxied = true , bool ? isExternal = null )
439
+ public static ApplicationModel . IResourceBuilder < T > WithEndpoint < T > ( this ApplicationModel . IResourceBuilder < T > builder , int ? port = null , int ? targetPort = null , string ? scheme = null , string ? name = null , string ? env = null , bool isProxied = true , bool ? isExternal = null , System . Net . Sockets . ProtocolType ? protocol = null )
440
+ where T : ApplicationModel . IResourceWithEndpoints { throw null ; }
441
+
442
+ public static ApplicationModel . IResourceBuilder < T > WithEndpoint < T > ( this ApplicationModel . IResourceBuilder < T > builder , int ? port , int ? targetPort , string ? scheme , string ? name , string ? env , bool isProxied , bool ? isExternal )
411
443
where T : ApplicationModel . IResourceWithEndpoints { throw null ; }
412
444
413
445
public static ApplicationModel . IResourceBuilder < T > WithEndpoint < T > ( this ApplicationModel . IResourceBuilder < T > builder , string endpointName , System . Action < ApplicationModel . EndpointAnnotation > callback , bool createIfNotExists = true )
@@ -633,6 +665,12 @@ public sealed partial class ContainerImageAnnotation : IResourceAnnotation
633
665
public string ? Tag { get { throw null ; } set { } }
634
666
}
635
667
668
+ [ System . Diagnostics . DebuggerDisplay ( "Type = {GetType().Name,nq}" ) ]
669
+ public sealed partial class ContainerImagePullPolicyAnnotation : IResourceAnnotation
670
+ {
671
+ public required ImagePullPolicy ImagePullPolicy { get { throw null ; } set { } }
672
+ }
673
+
636
674
public enum ContainerLifetime
637
675
{
638
676
Session = 0 ,
@@ -1004,6 +1042,13 @@ public enum IconVariant
1004
1042
Filled = 1
1005
1043
}
1006
1044
1045
+ public enum ImagePullPolicy
1046
+ {
1047
+ Default = 0 ,
1048
+ Always = 1 ,
1049
+ Missing = 2
1050
+ }
1051
+
1007
1052
public partial interface IManifestExpressionProvider
1008
1053
{
1009
1054
string ValueExpression { get ; }
@@ -1067,6 +1112,10 @@ public partial interface IResourceWithEnvironment : IResource
1067
1112
{
1068
1113
}
1069
1114
1115
+ public partial interface IResourceWithoutLifetime : IResource
1116
+ {
1117
+ }
1118
+
1070
1119
public partial interface IResourceWithParent : IResource
1071
1120
{
1072
1121
IResource Parent { get ; }
@@ -1207,7 +1256,7 @@ public abstract partial class ParameterDefault
1207
1256
public abstract void WriteToManifest ( Publishing . ManifestPublishingContext context ) ;
1208
1257
}
1209
1258
1210
- public partial class ParameterResource : Resource , IManifestExpressionProvider , IValueProvider
1259
+ public partial class ParameterResource : Resource , IResourceWithoutLifetime , IResource , IManifestExpressionProvider , IValueProvider
1211
1260
{
1212
1261
public ParameterResource ( string name , System . Func < ParameterDefault ? , string > callback , bool secret = false ) : base ( default ! ) { }
1213
1262
@@ -1272,6 +1321,9 @@ public readonly void AppendFormatted(string? value) { }
1272
1321
public void AppendFormatted < T > ( T valueProvider )
1273
1322
where T : IValueProvider , IManifestExpressionProvider { }
1274
1323
1324
+ public void AppendFormatted < T > ( IResourceBuilder < T > valueProvider )
1325
+ where T : IResource , IValueProvider , IManifestExpressionProvider { }
1326
+
1275
1327
public readonly void AppendLiteral ( string value ) { }
1276
1328
}
1277
1329
}
@@ -1529,6 +1581,7 @@ public sealed partial class UpdateCommandStateContext
1529
1581
[ System . Diagnostics . DebuggerDisplay ( "{Url}" , Name = "{Name}" ) ]
1530
1582
public sealed partial record UrlSnapshot ( string Name , string Url , bool IsInternal )
1531
1583
{
1584
+ public bool IsInactive { get { throw null ; } init { } }
1532
1585
}
1533
1586
1534
1587
[ System . Diagnostics . DebuggerDisplay ( "{Source}" , Name = "{Target}" ) ]
0 commit comments