NatsBuilderExtensions.WithJetStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithJetStream(IResourceBuilder<NatsServerResource>) |
Adds JetStream support to the NATS server resource. |
WithJetStream(IResourceBuilder<NatsServerResource>, String) |
Obsolete.
Adds JetStream support to the NATS server resource. |
WithJetStream(IResourceBuilder<NatsServerResource>)
- Source:
- NatsBuilderExtensions.cs
Adds JetStream support to the NATS server resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> WithJetStream (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> builder);
static member WithJetStream : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource>
<Extension()>
Public Function WithJetStream (builder As IResourceBuilder(Of NatsServerResource)) As IResourceBuilder(Of NatsServerResource)
Parameters
- builder
- IResourceBuilder<NatsServerResource>
The resource builder.
Returns
The IResourceBuilder<T>.
Applies to
WithJetStream(IResourceBuilder<NatsServerResource>, String)
- Source:
- NatsBuilderExtensions.cs
Caution
This method is obsolete and will be removed in a future version. Use the overload without the srcMountPath parameter and WithDataBindMount extension instead if you want to keep data locally.
Adds JetStream support to the NATS server resource.
[System.Obsolete("This method is obsolete and will be removed in a future version. Use the overload without the srcMountPath parameter and WithDataBindMount extension instead if you want to keep data locally.")]
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> WithJetStream (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> builder, string? srcMountPath = default);
[<System.Obsolete("This method is obsolete and will be removed in a future version. Use the overload without the srcMountPath parameter and WithDataBindMount extension instead if you want to keep data locally.")>]
static member WithJetStream : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource>
<Extension()>
Public Function WithJetStream (builder As IResourceBuilder(Of NatsServerResource), Optional srcMountPath As String = Nothing) As IResourceBuilder(Of NatsServerResource)
Parameters
- builder
- IResourceBuilder<NatsServerResource>
The resource builder.
- srcMountPath
- String
Optional mount path providing persistence between restarts.
Returns
The IResourceBuilder<T>.
- Attributes