Class NatsDataEngineBuilderExtensions
Namespace: Cephalon.Data.Nats.Registration
Assembly: Cephalon.Data.Nats.dll
Registers the NATS JetStream ledger-store data companion pack with an
public static class NatsDataEngineBuilderExtensionsInheritance
Section titled “Inheritance”object ← NatsDataEngineBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddNatsData(EngineBuilder, string, Action<NatsDataOptions>?)
Section titled “ AddNatsData(EngineBuilder, string, Action<NatsDataOptions>?)”Adds the NATS data pack with the supplied server URL.
public static EngineBuilder AddNatsData(this EngineBuilder builder, string uri, Action<NatsDataOptions>? configure = null)Parameters
Section titled “Parameters”builder EngineBuilder
The engine builder to extend.
uri string
The NATS server URI (e.g. “nats://localhost:4222”).
configure Action<NatsDataOptions>?
An optional callback that configures the host-owned NATS pack options.
Returns
Section titled “Returns”The same engine builder for fluent composition.
Remarks
Section titled “Remarks”Register outbox or inbox support by configuring configure callback.
AddNatsData(EngineBuilder, Action<NatsDataOptions>)
Section titled “ AddNatsData(EngineBuilder, Action<NatsDataOptions>)”Adds the NATS data pack using an options callback that can bind from configuration.
public static EngineBuilder AddNatsData(this EngineBuilder builder, Action<NatsDataOptions> configure)Parameters
Section titled “Parameters”builder EngineBuilder
The engine builder to extend.
configure Action<NatsDataOptions>
The callback that configures the host-owned NATS pack options, including
Returns
Section titled “Returns”The same engine builder for fluent composition.
Remarks
Section titled “Remarks”Use either nats://localhost:4222.