Class NatsEventSourcingServiceCollectionExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.EventSourcing.Nats.Hosting
Assembly: Cephalon.EventSourcing.Nats.dll
Registers the NATS JetStream KV event-store provider used by Cephalon hosts.
public static class NatsEventSourcingServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← NatsEventSourcingServiceCollectionExtensions
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”AddCephalonNatsEventSourcing(IServiceCollection, string, string)
Section titled “ AddCephalonNatsEventSourcing(IServiceCollection, string, string)”Adds the NATS event-store provider to the service collection.
public static IServiceCollection AddCephalonNatsEventSourcing(this IServiceCollection services, string url, string bucketName = "cephalon-events")Parameters
Section titled “Parameters”services IServiceCollection
The service collection to extend.
url string
The NATS server URL (e.g. “nats://localhost:4222”).
bucketName string
The JetStream KV bucket name used for event stream entries. Defaults to cephalon-events.
Returns
Section titled “Returns”The same service collection for fluent registration.