Nethereum.BlockchainStorage.Processors.SqlServer
6.0.4
Prefix Reserved
dotnet add package Nethereum.BlockchainStorage.Processors.SqlServer --version 6.0.4
NuGet\Install-Package Nethereum.BlockchainStorage.Processors.SqlServer -Version 6.0.4
<PackageReference Include="Nethereum.BlockchainStorage.Processors.SqlServer" Version="6.0.4" />
<PackageVersion Include="Nethereum.BlockchainStorage.Processors.SqlServer" Version="6.0.4" />
<PackageReference Include="Nethereum.BlockchainStorage.Processors.SqlServer" />
paket add Nethereum.BlockchainStorage.Processors.SqlServer --version 6.0.4
#r "nuget: Nethereum.BlockchainStorage.Processors.SqlServer, 6.0.4"
#:package Nethereum.BlockchainStorage.Processors.SqlServer@6.0.4
#addin nuget:?package=Nethereum.BlockchainStorage.Processors.SqlServer&version=6.0.4
#tool nuget:?package=Nethereum.BlockchainStorage.Processors.SqlServer&version=6.0.4
Nethereum.BlockchainStorage.Processors.SqlServer
SQL Server-specific DI registration for the Nethereum blockchain indexer hosted services.
Overview
Provides AddSqlServerBlockchainProcessor() and AddSqlServerInternalTransactionProcessor() extension methods that wire together the database-agnostic processing pipeline from Nethereum.BlockchainStorage.Processors with SQL Server storage from Nethereum.BlockchainStore.SqlServer.
Supports optional schema isolation for multi-chain storage in a single database.
Installation
dotnet add package Nethereum.BlockchainStorage.Processors.SqlServer
Targets net10.0.
Dependencies
- Nethereum.BlockchainStorage.Processors - Database-agnostic processing services and hosted services
- Nethereum.BlockchainStore.SqlServer - SQL Server DbContext and context factory
Quick Start
var builder = Host.CreateApplicationBuilder(args);
var connectionString = builder.Configuration.GetConnectionString("SqlServerConnection");
builder.Services.AddSqlServerBlockchainProcessor(
builder.Configuration,
connectionString);
builder.Services.AddSqlServerInternalTransactionProcessor();
var host = builder.Build();
await host.RunAsync();
With Schema Isolation
builder.Services.AddSqlServerBlockchainProcessor(
builder.Configuration,
connectionString,
schema: "mainnet");
Connection String Resolution
The extension resolves the connection string in order:
- Explicit
connectionStringparameter ConnectionStrings:SqlServerConnectionConnectionStrings:BlockchainDbStorage
Configuration
See Nethereum.BlockchainStorage.Processors for BlockchainProcessingOptions configuration.
Related Packages
- Nethereum.BlockchainStorage.Processors - Base processing services
- Nethereum.BlockchainStore.SqlServer - SQL Server storage layer
| Product | Versions 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. |
-
net10.0
- Nethereum.BlockchainStorage.Processors (>= 6.0.4)
- Nethereum.BlockchainStore.SqlServer (>= 6.0.4)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.