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
Methods
AddEndpoint<TEndpoint>(EndpointConfig)
IApolloBuilder AddEndpoint<TEndpoint>(EndpointConfig config) where TEndpoint : class
Parameters
config
EndpointConfig
Returns
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
CreateMissingResources(bool)
IApolloBuilder CreateMissingResources(bool createMissingResources = true)
Parameters
createMissingResources
bool
Returns
PublishOnly(bool)
IApolloBuilder PublishOnly(bool publishOnly = true)
Parameters
publishOnly
bool
Returns
WithAckStrategy(AckStrategy)
IApolloBuilder WithAckStrategy(AckStrategy ackStrategy)
Parameters
ackStrategy
AckStrategy
Returns
WithConfig(ApolloConfig)
IApolloBuilder WithConfig(ApolloConfig config)
Parameters
config
ApolloConfig
Returns
WithDefaultConsumerName(string)
IApolloBuilder WithDefaultConsumerName(string consumerName)
Parameters
consumerName
string
Returns
WithDefaultNamespace(string)
IApolloBuilder WithDefaultNamespace(string defaultNamespace)
Parameters
defaultNamespace
string
Returns
WithEndpointProvider(IEndpointProvider)
IApolloBuilder WithEndpointProvider(IEndpointProvider endpointProvider)
Parameters
endpointProvider
IEndpointProvider
Returns
WithEndpointProvider<TProvider>()
IApolloBuilder WithEndpointProvider<TProvider>() where TProvider : class, IEndpointProvider
Returns
Type Parameters
TProvider
WithInstanceId(string)
IApolloBuilder WithInstanceId(string instanceId)
Parameters
instanceId
string
Returns
WithProviderPublisher(IProviderPublisher)
IApolloBuilder WithProviderPublisher(IProviderPublisher providerPublisher)
Parameters
providerPublisher
IProviderPublisher
Returns
WithProviderPublisher<TPublisher>()
IApolloBuilder WithProviderPublisher<TPublisher>() where TPublisher : class, IProviderPublisher
Returns
Type Parameters
TPublisher
WithSubscriberProvider(ISubscriptionProvider)
IApolloBuilder WithSubscriberProvider(ISubscriptionProvider subscriberProvider)
Parameters
subscriberProvider
ISubscriptionProvider
Returns
WithSubscriberProvider<TProvider>()
IApolloBuilder WithSubscriberProvider<TProvider>() where TProvider : class, ISubscriptionProvider
Returns
Type Parameters
TProvider