Table of Contents

Class EventBusServiceExtensions

Namespace
JD.AI.Core.Events
Assembly
JD.AI.Core.dll

Extension methods for registering event bus services.

public static class EventBusServiceExtensions
Inheritance
EventBusServiceExtensions
Inherited Members

Methods

AddEventBus(IServiceCollection, EventBusOptions?)

Adds the event bus to the service collection. Uses InProcessEventBus by default; set EventBus:Provider to "Redis" and provide EventBus:RedisConnectionString to switch to distributed mode.

public static IServiceCollection AddEventBus(this IServiceCollection services, EventBusOptions? options = null)

Parameters

services IServiceCollection
options EventBusOptions

Returns

IServiceCollection