VOOZH about

URL: https://www.nuget.org/packages/SeliseBlocks.Genesis/

⇱ NuGet Gallery | SeliseBlocks.Genesis 10.0.17




SeliseBlocks.Genesis 10.0.17

dotnet add package SeliseBlocks.Genesis --version 10.0.17
 
 
NuGet\Install-Package SeliseBlocks.Genesis -Version 10.0.17
 
 
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="SeliseBlocks.Genesis" Version="10.0.17" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SeliseBlocks.Genesis" Version="10.0.17" />
 
Directory.Packages.props
<PackageReference Include="SeliseBlocks.Genesis" />
 
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 SeliseBlocks.Genesis --version 10.0.17
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SeliseBlocks.Genesis, 10.0.17"
 
 
#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 SeliseBlocks.Genesis@10.0.17
 
 
#: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=SeliseBlocks.Genesis&version=10.0.17
 
Install as a Cake Addin
#tool nuget:?package=SeliseBlocks.Genesis&version=10.0.17
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SeliseBlocks.Genesis

Installation

This package is automatically included in Blocks Genesis framework. No manual installation needed for Genesis-based services.

For standalone use:

dotnet add package SeliseBlocks.Genesis

Quick Start for Genesis Services

1. API Service Example

using Blocks.Genesis;
using TestDriver;

const string _serviceName = "Service-API-Test_One";

// Configure logs and secrets - LMT is automatically initialized here
await ApplicationConfigurations.ConfigureLogAndSecretsAsync(_serviceName, VaultType.Azure); // VaultType.OnPrem

var builder = WebApplication.CreateBuilder(args);
ApplicationConfigurations.ConfigureApiEnv(builder, args);

var services = builder.Services;
ApplicationConfigurations.ConfigureServices(services, new MessageConfiguration
{
 AzureServiceBusConfiguration = new()
 {
 Queues = new List<string> { "demo_queue" },
 Topics = new List<string> { "demo_topic_1" },
 },
});

ApplicationConfigurations.ConfigureApi(services);
services.AddSingleton<IGrpcClient, GrpcClient>();

var app = builder.Build();
ApplicationConfigurations.ConfigureMiddleware(app);

await app.RunAsync();

2. Worker Service Example

using Blocks.Genesis;
using WorkerOne;

const string _serviceName = "Service-Worker-Test_One";

// Configure logs and secrets - LMT is automatically initialized here
var blocksSecrets = await ApplicationConfigurations.ConfigureLogAndSecretsAsync(_serviceName, VaultType.Azure); // VaultType.OnPrem

var messageConfiguration = new MessageConfiguration
{
 AzureServiceBusConfiguration = new()
 {
 Queues = new List<string> { "demo_queue" },
 Topics = new List<string> { "demo_topic", "demo_topic_1" }
 }
};

await CreateHostBuilder(args).Build().RunAsync();

IHostBuilder CreateHostBuilder(string[] args) =>
 Host.CreateDefaultBuilder(args).ConfigureServices((services) =>
 {
 services.AddHttpClient();
 services.AddSingleton<IConsumer<W1Context>, W1Consumer>();
 services.AddSingleton<IConsumer<W2Context>, W2Consumer>();
 ApplicationConfigurations.ConfigureWorker(services, messageConfiguration);
 });

Configuration

LMT Client is automatically configured when you call ApplicationConfigurations.ConfigureLogAndSecretsAsync().

Option 1: Using .env File (Recommended for Local Development)

Create a .env file in your project root:

# LMT Service Bus Configuration
LogsServiceBusConnectionString=Endpoint=sb://your-logs-namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=your-key
TracesServiceBusConnectionString=Endpoint=sb://your-traces-namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=your-key

# Optional: Retry Configuration
MaxRetries=3
MaxFailedBatches=100

# Other service configuration
ASPNETCORE_ENVIRONMENT=Development
BlocksSecret__AllowedCorsOrigins=https://app.example.com,https://admin.example.com

Important: Add .env to your .gitignore:

.env
.env.local
.env.*.local

Option 2: Using appsettings.json

{
 "Lmt": {
 "MaxRetries": 3,
 "MaxFailedBatches": 100
 }
}

Note: Service Bus connection strings must be set via environment variables (.env or system environment).

Option 3: Using Environment Variables (For Docker/Production)

export LogsServiceBusConnectionString="Endpoint=sb://your-logs-namespace.servicebus.windows.net/;..."
export TracesServiceBusConnectionString="Endpoint=sb://your-traces-namespace.servicebus.windows.net/;..."
export MaxRetries=3
export MaxFailedBatches=100

Configuration Priority

  1. .env file (loaded first, sets environment variables)
  2. System environment variables (can override .env)
  3. appsettings.json Lmt:* section (for MaxRetries and MaxFailedBatches only)
  4. Default values (MaxRetries=3, MaxFailedBatches=100)

Required vs Optional

Setting Required Source Default
LogsServiceBusConnectionString Required Environment Variable -
TracesServiceBusConnectionString Required Environment Variable -
MaxRetries Optional appsettings.json or Environment 3
MaxFailedBatches Optional appsettings.json or Environment 100

*If not configured, logs will only write to console and MongoDB (Service Bus integration is disabled).

Architecture Overview

Middleware pipeline (API):

HSTS -> SecurityHeaders -> RequestMetrics -> CORS -> Health endpoints -> Routing -> TenantValidation -> GlobalExceptionHandler -> Authentication -> Authorization -> Antiforgery -> Controllers

Local Development

Start local infrastructure:

docker-compose up -d

Use .env.example as baseline for environment variables.

Migration Notes

  • ConsumerMessage.ScheduledEnqueueTimeUtc is the corrected property name.
  • ConfigureAzureServiceBus replaces ConfigerAzureServiceBus.
  • SecretEndPointAttribute replaces SecretEnpPointAttribute.
Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (5)

Showing the top 5 NuGet packages that depend on SeliseBlocks.Genesis:

Package Downloads
SeliseBlocks.CaptchaDriver

Blocks Captcha Driver

SeliseBlocks.DeploymentDriver

Blocks Deployment Driver

SeliseBlocks.EurolmDriver

Blocks Eurolm Driver

SeliseBlocks.ObservabilityDriver

Blocks Observability Driver - Monitor and Health APIs

SeliseBlocks.CaptchaService

Blocks Captcha Service

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.17 8 6/18/2026
10.0.16 62 6/17/2026
10.0.15 54 6/15/2026
10.0.14 491 6/3/2026
10.0.13 60 6/3/2026
10.0.12 1,233 5/24/2026
10.0.11 1,496 5/20/2026
10.0.10 502 5/19/2026
10.0.9 79 5/18/2026
10.0.8 98 5/18/2026
10.0.7 268 5/17/2026
10.0.6 65 5/17/2026
10.0.5 83 5/17/2026
10.0.4 96 5/16/2026
10.0.3 59 5/16/2026
10.0.2 64 5/16/2026
10.0.1 142 5/11/2026
9.0.50 59 6/11/2026
9.0.49 129 5/21/2026
9.0.48-preview.1 1,665 4/22/2026
Loading failed