Table of Contents

Class ApolloClient

Namespace: Apollo
Assembly: Apollo.dll

public class ApolloClient

Inheritance

objectApolloClient

Inherited Members

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

Constructors

ApolloClient(ApolloConfig, ISubscriptionProvider?, IProviderPublisher?, IEndpointProvider?)

public ApolloClient(ApolloConfig apolloConfig, ISubscriptionProvider? defaultSubscriptionProvider = null, IProviderPublisher? providerPublisher = null, IEndpointProvider? endpointProvider = null)

Parameters

apolloConfig ApolloConfig

defaultSubscriptionProvider ISubscriptionProvider?

providerPublisher IProviderPublisher?

endpointProvider IEndpointProvider?

Methods

AddEndpoint<T>(EndpointConfig)

public IApolloEndpoint AddEndpoint<T>(EndpointConfig endpointConfig)

Parameters

endpointConfig EndpointConfig

Returns

IApolloEndpoint

Type Parameters

T

AddEndpoint(Type, EndpointConfig)

public IApolloEndpoint AddEndpoint(Type endpointType, EndpointConfig endpointConfig)

Parameters

endpointType Type

endpointConfig EndpointConfig

Returns

IApolloEndpoint

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

public IApolloEndpoint AddHandler(EndpointConfig endpointConfig, Func<ApolloContext, CancellationToken, Task> handler)

Parameters

endpointConfig EndpointConfig

handler Func<ApolloContext, CancellationToken, Task>

Returns

IApolloEndpoint

CreatePublisher(EndpointConfig)

public IPublisher CreatePublisher(EndpointConfig endpointConfig)

Parameters

endpointConfig EndpointConfig

Returns

IPublisher

CreatePublisher(PublishConfig)

public IPublisher CreatePublisher(PublishConfig publishConfig)

Parameters

publishConfig PublishConfig

Returns

IPublisher