Table of Contents

Interface IApolloBuilder

Namespace: Apollo.Extensions.Microsoft.Hosting
Assembly: Apollo.Extensions.Microsoft.Hosting.dll

public interface IApolloBuilder

Extension Methods

Setup.AddNatsProvider(IApolloBuilder, Func<NatsOpts, NatsOpts>)

Properties

Services

IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

AddEndpoint<TEndpoint>(EndpointConfig)

IApolloBuilder AddEndpoint<TEndpoint>(EndpointConfig config) where TEndpoint : class

Parameters

config EndpointConfig

Returns

IApolloBuilder

Type Parameters

TEndpoint

AddHandler(EndpointConfig, Func<ApolloContext, CancellationToken, Task>)

IApolloBuilder AddHandler(EndpointConfig config, Func<ApolloContext, CancellationToken, Task> handler)

Parameters

config EndpointConfig

handler Func<ApolloContext, CancellationToken, Task>

Returns

IApolloBuilder

CreateMissingResources(bool)

IApolloBuilder CreateMissingResources(bool createMissingResources = true)

Parameters

createMissingResources bool

Returns

IApolloBuilder

PublishOnly(bool)

IApolloBuilder PublishOnly(bool publishOnly = true)

Parameters

publishOnly bool

Returns

IApolloBuilder

WithAckStrategy(AckStrategy)

IApolloBuilder WithAckStrategy(AckStrategy ackStrategy)

Parameters

ackStrategy AckStrategy

Returns

IApolloBuilder

WithConfig(ApolloConfig)

IApolloBuilder WithConfig(ApolloConfig config)

Parameters

config ApolloConfig

Returns

IApolloBuilder

WithDefaultConsumerName(string)

IApolloBuilder WithDefaultConsumerName(string consumerName)

Parameters

consumerName string

Returns

IApolloBuilder

WithDefaultNamespace(string)

IApolloBuilder WithDefaultNamespace(string defaultNamespace)

Parameters

defaultNamespace string

Returns

IApolloBuilder

WithEndpointProvider(IEndpointProvider)

IApolloBuilder WithEndpointProvider(IEndpointProvider endpointProvider)

Parameters

endpointProvider IEndpointProvider

Returns

IApolloBuilder

WithEndpointProvider<TProvider>()

IApolloBuilder WithEndpointProvider<TProvider>() where TProvider : class, IEndpointProvider

Returns

IApolloBuilder

Type Parameters

TProvider

WithInstanceId(string)

IApolloBuilder WithInstanceId(string instanceId)

Parameters

instanceId string

Returns

IApolloBuilder

WithProviderPublisher(IProviderPublisher)

IApolloBuilder WithProviderPublisher(IProviderPublisher providerPublisher)

Parameters

providerPublisher IProviderPublisher

Returns

IApolloBuilder

WithProviderPublisher<TPublisher>()

IApolloBuilder WithProviderPublisher<TPublisher>() where TPublisher : class, IProviderPublisher

Returns

IApolloBuilder

Type Parameters

TPublisher

WithSubscriberProvider(ISubscriptionProvider)

IApolloBuilder WithSubscriberProvider(ISubscriptionProvider subscriberProvider)

Parameters

subscriberProvider ISubscriptionProvider

Returns

IApolloBuilder

WithSubscriberProvider<TProvider>()

IApolloBuilder WithSubscriberProvider<TProvider>() where TProvider : class, ISubscriptionProvider

Returns

IApolloBuilder

Type Parameters

TProvider