Table of Contents

Class ConfigService

Namespace
Virtufin.Api.Services
Assembly
Virtufin.Api.dll

Implementation of the gRPC Config service. Provides service configuration discovery and management capabilities.

public class ConfigService : Config.ConfigBase
Inheritance
Config.ConfigBase
ConfigService
Inherited Members

Constructors

ConfigService(ServicesConfiguration)

Creates a new ConfigService instance.

public ConfigService(ServicesConfiguration config)

Parameters

config ServicesConfiguration

The services configuration to expose.

Methods

GetService(GetConfigServiceRequest, ServerCallContext)

Gets the configuration for a specific service by name.

public override Task<GetConfigServiceResponse> GetService(GetConfigServiceRequest request, ServerCallContext context)

Parameters

request GetConfigServiceRequest

The get config service request containing the service name.

context ServerCallContext

The server call context.

Returns

Task<GetConfigServiceResponse>

The service configuration or null if not found.

ListServices(ListConfigServicesRequest, ServerCallContext)

Lists all services registered in the configuration.

public override Task<ListConfigServicesResponse> ListServices(ListConfigServicesRequest request, ServerCallContext context)

Parameters

request ListConfigServicesRequest

The list config services request.

context ServerCallContext

The server call context.

Returns

Task<ListConfigServicesResponse>

A list of all configured services.