Table of Contents

Class ServiceCollectionExtensions

Namespace
Virtufin.Api.Client
Assembly
Virtufin.Api.Client.dll

Registers the gateway's typed gRPC clients for a service that calls it.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddVirtufinApi(IServiceCollection, IConfiguration)

Registers a GrpcChannel to the gateway at HostEnvVar:PortEnvVar (defaults DefaultHost:DefaultPort), a CallInvoker on it that sends ApiKeyEnvVar as x-api-key, the Virtufin.Api.Protos.Pubsub.PubsubClient, Virtufin.Api.Protos.State.StateClient and Virtufin.Api.Protos.Trigger.TriggerClient on that invoker, and an IInstanceIdProvider. Registrations already present are kept.

public static IServiceCollection AddVirtufinApi(this IServiceCollection services, IConfiguration configuration)

Parameters

services IServiceCollection
configuration IConfiguration

Returns

IServiceCollection

Exceptions

FormatException

The configured port is not an integer.