Table of Contents

Class GrpcChannelPool

Namespace
Virtufin.Api.Services
Assembly
Virtufin.Api.dll
public class GrpcChannelPool : IDisposable
Inheritance
GrpcChannelPool
Implements
Inherited Members

Constructors

GrpcChannelPool(ServicesConfiguration, ILogger<GrpcChannelPool>)

public GrpcChannelPool(ServicesConfiguration config, ILogger<GrpcChannelPool> logger)

Parameters

config ServicesConfiguration
logger ILogger<GrpcChannelPool>

Properties

ChannelCount

public int ChannelCount { get; }

Property Value

int

ConfiguredServiceCount

public int ConfiguredServiceCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetChannelAsync(string)

public Task<GrpcChannel> GetChannelAsync(string serviceName)

Parameters

serviceName string

Returns

Task<GrpcChannel>