@@ -12,26 +12,157 @@ public static partial class AzureServiceBusExtensions
1212 {
1313 public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > AddAzureServiceBus ( this IDistributedApplicationBuilder builder , string name ) { throw null ; }
1414
15+ [ System . Obsolete ( "This method is obsolete and will be removed in a future version. Use WithQueue instead to add an Azure Service Bus Queue." ) ]
1516 public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > AddQueue ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string name ) { throw null ; }
1617
18+ [ System . Obsolete ( "This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Subscription to a Topic." ) ]
1719 public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > AddSubscription ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string topicName , string subscriptionName ) { throw null ; }
1820
21+ [ System . Obsolete ( "This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Topic and Subscriptions." ) ]
1922 public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > AddTopic ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string name , string [ ] subscriptions ) { throw null ; }
2023
24+ [ System . Obsolete ( "This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Topic." ) ]
2125 public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > AddTopic ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string name ) { throw null ; }
26+
27+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > ConfigureEmulator ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > builder , System . Action < System . Text . Json . Nodes . JsonNode > configJson ) { throw null ; }
28+
29+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > RunAsEmulator ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , System . Action < ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > > ? configureContainer = null ) { throw null ; }
30+
31+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > WithConfigurationFile ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > builder , string path ) { throw null ; }
32+
33+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > WithHostPort ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusEmulatorResource > builder , int ? port ) { throw null ; }
34+
35+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > WithQueue ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string name , System . Action < Azure . ServiceBus . ServiceBusQueue > ? configure = null ) { throw null ; }
36+
37+ public static ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > WithTopic ( this ApplicationModel . IResourceBuilder < Azure . AzureServiceBusResource > builder , string name , System . Action < Azure . ServiceBus . ServiceBusTopic > ? configure = null ) { throw null ; }
2238 }
2339}
2440
2541namespace Aspire . Hosting . Azure
2642{
27- public partial class AzureServiceBusResource : AzureProvisioningResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IResource , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , IResourceWithAzureFunctionsConfig
43+ public partial class AzureServiceBusEmulatorResource : ApplicationModel . ContainerResource , ApplicationModel . IResource
44+ {
45+ public AzureServiceBusEmulatorResource ( AzureServiceBusResource innerResource ) : base ( default ! , default ) { }
46+
47+ public override ApplicationModel . ResourceAnnotationCollection Annotations { get { throw null ; } }
48+ }
49+
50+ public partial class AzureServiceBusResource : AzureProvisioningResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IResource , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , IResourceWithAzureFunctionsConfig , ApplicationModel . IResourceWithEndpoints
2851 {
2952 public AzureServiceBusResource ( string name , System . Action < AzureResourceInfrastructure > configureInfrastructure ) : base ( default ! , default ! ) { }
3053
3154 public ApplicationModel . ReferenceExpression ConnectionStringExpression { get { throw null ; } }
3255
56+ public bool IsEmulator { get { throw null ; } }
57+
3358 public BicepOutputReference ServiceBusEndpoint { get { throw null ; } }
3459
3560 void IResourceWithAzureFunctionsConfig . ApplyAzureFunctionsConfiguration ( System . Collections . Generic . IDictionary < string , object > target , string connectionName ) { }
3661 }
62+ }
63+
64+ namespace Aspire . Hosting . Azure . ServiceBus
65+ {
66+ public partial class ServiceBusCorrelationFilter
67+ {
68+ public string ? ContentType { get { throw null ; } set { } }
69+
70+ public string ? CorrelationId { get { throw null ; } set { } }
71+
72+ public string ? MessageId { get { throw null ; } set { } }
73+
74+ public System . Collections . Generic . Dictionary < string , object > Properties { get { throw null ; } set { } }
75+
76+ public string ? ReplyTo { get { throw null ; } set { } }
77+
78+ public string ? ReplyToSessionId { get { throw null ; } set { } }
79+
80+ public bool ? RequiresPreprocessing { get { throw null ; } set { } }
81+
82+ public string ? SendTo { get { throw null ; } set { } }
83+
84+ public string ? SessionId { get { throw null ; } set { } }
85+
86+ public string ? Subject { get { throw null ; } set { } }
87+ }
88+
89+ public enum ServiceBusFilterType
90+ {
91+ SqlFilter = 0 ,
92+ CorrelationFilter = 1
93+ }
94+
95+ public partial class ServiceBusQueue
96+ {
97+ public ServiceBusQueue ( string name ) { }
98+
99+ public bool ? DeadLetteringOnMessageExpiration { get { throw null ; } set { } }
100+
101+ public System . TimeSpan ? DefaultMessageTimeToLive { get { throw null ; } set { } }
102+
103+ public System . TimeSpan ? DuplicateDetectionHistoryTimeWindow { get { throw null ; } set { } }
104+
105+ public string ? ForwardDeadLetteredMessagesTo { get { throw null ; } set { } }
106+
107+ public string ? ForwardTo { get { throw null ; } set { } }
108+
109+ public System . TimeSpan ? LockDuration { get { throw null ; } set { } }
110+
111+ public int ? MaxDeliveryCount { get { throw null ; } set { } }
112+
113+ public string Name { get { throw null ; } set { } }
114+
115+ public bool ? RequiresDuplicateDetection { get { throw null ; } set { } }
116+
117+ public bool ? RequiresSession { get { throw null ; } set { } }
118+ }
119+
120+ public partial class ServiceBusRule
121+ {
122+ public ServiceBusRule ( string name ) { }
123+
124+ public ServiceBusCorrelationFilter CorrelationFilter { get { throw null ; } set { } }
125+
126+ public ServiceBusFilterType FilterType { get { throw null ; } set { } }
127+
128+ public string Name { get { throw null ; } set { } }
129+ }
130+
131+ public partial class ServiceBusSubscription
132+ {
133+ public ServiceBusSubscription ( string name ) { }
134+
135+ public bool ? DeadLetteringOnMessageExpiration { get { throw null ; } set { } }
136+
137+ public System . TimeSpan ? DefaultMessageTimeToLive { get { throw null ; } set { } }
138+
139+ public string ? ForwardDeadLetteredMessagesTo { get { throw null ; } set { } }
140+
141+ public string ? ForwardTo { get { throw null ; } set { } }
142+
143+ public System . TimeSpan ? LockDuration { get { throw null ; } set { } }
144+
145+ public int ? MaxDeliveryCount { get { throw null ; } set { } }
146+
147+ public string Name { get { throw null ; } set { } }
148+
149+ public bool ? RequiresSession { get { throw null ; } set { } }
150+
151+ public System . Collections . Generic . List < ServiceBusRule > Rules { get { throw null ; } }
152+ }
153+
154+ public partial class ServiceBusTopic
155+ {
156+ public ServiceBusTopic ( string name ) { }
157+
158+ public System . TimeSpan ? DefaultMessageTimeToLive { get { throw null ; } set { } }
159+
160+ public System . TimeSpan ? DuplicateDetectionHistoryTimeWindow { get { throw null ; } set { } }
161+
162+ public string Name { get { throw null ; } set { } }
163+
164+ public bool ? RequiresDuplicateDetection { get { throw null ; } set { } }
165+
166+ public System . Collections . Generic . List < ServiceBusSubscription > Subscriptions { get { throw null ; } }
167+ }
37168}
0 commit comments