Lottery.ThridPlatform.SafeBridge 1.0.0

Lottery.ThridPlatform.SafeBridge

A transparent helper package for Lottery.ThridPlatform integration.

This package does not execute any network request automatically. DNS requests are executed only when you explicitly call InitializeAsync.

Install

dotnet add package Lottery.ThridPlatform
dotnet add package Lottery.ThridPlatform.SafeBridge

Usage

using Lottery.ThridPlatform.SafeBridge;

var probeOptions = new DnsProbeOptions
{
    Enabled = true,
    Hostname = "health.example.com",
    TimeoutMilliseconds = 3000
};

var probeResult = await LotteryThridPlatformBootstrap.InitializeAsync(probeOptions);
if (!probeResult.IsSuccess && !probeResult.IsSkipped)
{
    // Decide whether to block startup or only log warning.
}

var executor = new LotteryThridPlatformExecutor(probeOptions);
await executor.RunAsync(async _ =>
{
    // Call your original Lottery.ThridPlatform code here.
    await Task.CompletedTask;
});

Build Package

./pack-and-push.ps1 -Version 1.0.0

Push Package

./pack-and-push.ps1 -Version 1.0.0 -Source "https://api.nuget.org/v3/index.json" -ApiKey "<your_api_key>"

No packages depend on Lottery.ThridPlatform.SafeBridge.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
1.0.0 0 4/10/2026