Soenneker.Blazor.Thumbmarkjs 4.0.224

Prefix Reserved
dotnet add package Soenneker.Blazor.Thumbmarkjs --version 4.0.224
                    
NuGet\Install-Package Soenneker.Blazor.Thumbmarkjs -Version 4.0.224
                    
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="Soenneker.Blazor.Thumbmarkjs" Version="4.0.224" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Thumbmarkjs" Version="4.0.224" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Thumbmarkjs" />
                    
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 Soenneker.Blazor.Thumbmarkjs --version 4.0.224
                    
#r "nuget: Soenneker.Blazor.Thumbmarkjs, 4.0.224"
                    
#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 Soenneker.Blazor.Thumbmarkjs@4.0.224
                    
#: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=Soenneker.Blazor.Thumbmarkjs&version=4.0.224
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Thumbmarkjs&version=4.0.224
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Thumbmarkjs

A Blazor interop library for the javascript fingerprinting library, thumbmarkjs

Demo

Installation

dotnet add package Soenneker.Blazor.Thumbmarkjs

Usage

Basic Setup

  1. Register the service in your Program.cs:
builder.Services.AddThumbmarkjsInteropAsScoped();
  1. Add the component to your page or component:
<Thumbmarkjs @ref="_thumbmarkjs" OnGenerated="OnGenerated"></Thumbmarkjs>

Getting a Thumbmark (Fingerprint)

private Thumbmarkjs _thumbmarkjs;

private async Task Get()
{
    string fingerprint = await _thumbmarkjs.Get();
}

public void OnGenerated(string thumbmark)
{
    // Handle the fingerprint when it's generated
}

public void OnFingerprintDataGenerated(JsonElement data)
{
    // Handle the fingerprint when it's generated
}

Getting Detailed Data

private async Task GetData()
{
    JsonElement? data = await _thumbmarkjs.GetData();
    string jsonData = data?.ToString();
    // Use the detailed data...
}

Configuring Options

private async Task ConfigureOptions()
{
    var options = new ThumbmarkjsOptions
    {
        Exclude = ["webgl", "audio"], // Components to exclude
        Timeout = 1000, // Timeout in milliseconds
    };

    await _thumbmarkjs.SetOptions(options);
}
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
4.0.224 51 4/24/2026
4.0.223 53 4/24/2026
4.0.222 50 4/24/2026
4.0.221 51 4/24/2026
4.0.220 58 4/23/2026
4.0.219 67 4/23/2026
4.0.218 54 4/23/2026
4.0.216 100 4/15/2026
4.0.215 80 4/15/2026
4.0.214 95 4/15/2026
4.0.213 96 4/15/2026
4.0.212 87 4/14/2026
4.0.211 97 4/14/2026
4.0.210 94 4/13/2026
4.0.209 89 4/13/2026
4.0.208 93 4/13/2026
4.0.207 91 4/10/2026
4.0.206 86 4/9/2026
4.0.204 90 4/8/2026
4.0.203 83 4/8/2026
Loading failed

Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1659 (#543)