AspireNatsClientExtensions.AddNatsJetStream(IHostApplicationBuilder) Method
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.
Registers NATS.Client.JetStream.INatsJSContext service for NATS JetStream operations.
C#
public static void AddNatsJetStream(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder);
static member AddNatsJetStream : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> unit
<Extension()>
Public Sub AddNatsJetStream (builder As IHostApplicationBuilder)
- builder
- IHostApplicationBuilder
The IHostApplicationBuilder to read config from and add services to.
Thrown if mandatory builder
is null.
產品 | 版本 |
---|---|
.NET Aspire | 8.0.0, 9.0.0, 9.1.0 |