Class ApolloClient
Namespace: Apollo
Assembly: Apollo.dll
public class ApolloClient
Inheritance
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
Type Parameters
T
AddEndpoint(Type, EndpointConfig)
public IApolloEndpoint AddEndpoint(Type endpointType, EndpointConfig endpointConfig)
Parameters
endpointType
Type
endpointConfig
EndpointConfig
Returns
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
CreatePublisher(EndpointConfig)
public IPublisher CreatePublisher(EndpointConfig endpointConfig)
Parameters
endpointConfig
EndpointConfig
Returns
CreatePublisher(PublishConfig)
public IPublisher CreatePublisher(PublishConfig publishConfig)
Parameters
publishConfig
PublishConfig