Indiko.Blocks.Communication.ServiceToService.Consul 2.7.8

dotnet add package Indiko.Blocks.Communication.ServiceToService.Consul --version 2.7.8
                    
NuGet\Install-Package Indiko.Blocks.Communication.ServiceToService.Consul -Version 2.7.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Indiko.Blocks.Communication.ServiceToService.Consul" Version="2.7.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Indiko.Blocks.Communication.ServiceToService.Consul" Version="2.7.8" />
                    
Directory.Packages.props
<PackageReference Include="Indiko.Blocks.Communication.ServiceToService.Consul" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Indiko.Blocks.Communication.ServiceToService.Consul --version 2.7.8
                    
#r "nuget: Indiko.Blocks.Communication.ServiceToService.Consul, 2.7.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Indiko.Blocks.Communication.ServiceToService.Consul@2.7.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Indiko.Blocks.Communication.ServiceToService.Consul&version=2.7.8
                    
Install as a Cake Addin
#tool nuget:?package=Indiko.Blocks.Communication.ServiceToService.Consul&version=2.7.8
                    
Install as a Cake Tool

Indiko.Blocks.Communication.ServiceToService.Consul

Consul-backed implementation of service discovery, key-value operations, and service-to-service HTTP access.

Overview

This package integrates Consul client capabilities with Indiko service-to-service abstractions and hosts service registration lifecycle logic.

Key Components

  • ServiceToServiceConsulBlock
  • ConsulServiceToServiceHttpClient
  • ConsulServiceAddressProvider
  • KeyValueProvider
  • ServiceDiscoveryHostedService
  • Options:
    • ServiceToServiceConsulOptions
    • ConsulOptions
    • ServiceOptions

DI Registration Entry Point

ServiceToServiceConsulBlock.ConfigureServices(...) registers:

  • IConsulClient
  • IConsulServiceAddressProvider
  • IKeyValueProvider
  • IServiceToServiceHttpClient
  • hosted service for registration/discovery lifecycle

Configuration

Configuration section: ServiceToServiceConsulOptions

  • Enabled
  • Consul.* (host, token, namespace, datacenter-related values)
  • Service.* (identity, endpoint, health-check metadata)

Runtime Behavior and Caveats

  • Provides REST operations using discovered service addresses.
  • Hosted service manages registration/disconnect behavior.
  • Some current implementation caveats:
    • data center assignment uses namespace value in one path,
    • permissive certificate callback is used in HTTP handler,
    • delete request path handling includes a known URI composition issue.

Minimal Usage

var s2s = serviceProvider.GetRequiredService<IServiceToServiceHttpClient>();
var response = await s2s.GetAsync("orders-service", "/api/orders", cancellationToken: cancellationToken);

Target Framework

  • .NET 10
  • Indiko.Blocks.Communication.ServiceToService.Abstractions
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.7.8 42 5/7/2026
2.7.7 42 5/7/2026
2.7.6 97 4/23/2026
2.7.5 90 4/23/2026
2.7.4 101 4/23/2026
2.7.3 102 4/23/2026
2.7.2 83 4/23/2026
2.7.1 94 4/23/2026
2.7.0 100 4/23/2026
2.6.4 89 4/21/2026
2.6.3 96 4/21/2026
2.6.2 97 4/21/2026
2.6.1 97 4/18/2026
2.6.0 96 4/17/2026
2.5.1 92 4/14/2026
2.5.0 119 3/30/2026
2.2.18 106 3/8/2026
2.2.17 88 3/8/2026
2.2.16 99 3/8/2026
2.2.15 94 3/7/2026
Loading failed