Table of Contents

Class ApolloFactory

Namespace: Apollo.Providers.NATS
Assembly: Apollo.Providers.NATS.dll

Provides a factory for creating Apollo components that use NATS as the underlying messaging system.

public sealed class ApolloFactory

Inheritance

objectApolloFactory

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Remarks

This factory does not manage the lifecycle of the providers it creates.

Constructors

ApolloFactory(INatsConnection, ILoggerFactory?)

Initializes a new instance of the Apollo.Providers.NATS.ApolloFactory class.

public ApolloFactory(INatsConnection natsConnection, ILoggerFactory? loggerFactory)

Parameters

natsConnection INatsConnection

Underlying NATS connection

loggerFactory ILoggerFactory?

(Optional) Logger Factory

Methods

CreatePublisher()

public IProviderPublisher CreatePublisher()

Returns

IProviderPublisher

CreateSubscriptionProvider()

public ISubscriptionProvider CreateSubscriptionProvider()

Returns

ISubscriptionProvider