Semantico.UI.AspNet 2.0.7.1

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

Semantico.UI.AspNet

ASP.NET Core integration for Semantico UI.

Overview

This package provides middleware and service extensions for hosting the Semantico Blazor admin interface in ASP.NET Core applications with built-in authentication and authorization support.

Installation

dotnet add package Semantico.Core.PostgreSql
dotnet add package Semantico.UI.AspNet

Quick Start

1. Configure in Program.cs

using Semantico.Core.PostgreSql;
using Semantico.UI.AspNet;

var builder = WebApplication.CreateBuilder(args);

// Configure database provider
builder.Services.AddPostgreSqlSemantico(
    builder.Configuration.GetConnectionString("SemanticoContext")!,
    schema: "semantico");

// Configure Semantico admin
builder.Services.AddSemanticoAdmin(builder.Configuration, options =>
{
    options.AddSemanticoScheduler<YourScheduler>();
    options.BaseUrl = "https://your-domain.com/semantico";
});

var app = builder.Build();

// Add Semantico UI with authentication
app.UseSemanticoUI()
    .UseBasicAuthentication("admin", "admin")
    .AddBlazorUI("/semantico");

// Run migrations
ServiceConfiguration.UseSemantico(app.Services);

app.Run();

2. Add Connection String

In appsettings.json:

{
  "ConnectionStrings": {
    "SemanticoContext": "Host=localhost;Database=semantico;Username=postgres;Password=yourpassword"
  }
}

3. Access the UI

Navigate to: http://localhost:5000/semantico

Login with the credentials configured in UseBasicAuthentication.

Features

  • Blazor Server UI hosting
  • Basic authentication middleware
  • Custom authorization provider support
  • Configurable UI path
  • Automatic service registration

Authentication

Basic Authentication

app.UseSemanticoUI()
    .UseBasicAuthentication("admin", "secretpassword")
    .AddBlazorUI("/semantico");

Custom Authorization Provider

Implement ISemanticoAuthorizationProvider for fine-grained permissions:

public class CustomAuthProvider : ISemanticoAuthorizationProvider
{
    public Task<bool> HasReadPermissionAsync(string username)
    {
        // Your read permission logic
    }

    public Task<bool> HasWritePermissionAsync(string username)
    {
        // Your write permission logic
    }
}

Register the provider:

builder.Services.AddSemanticoAdmin(builder.Configuration, options =>
{
    options.AddSemanticoScheduler<YourScheduler>();
    options.AddAuthorizationProvider<CustomAuthProvider>();
});

app.UseSemanticoUI()
    .UseBasicAuthentication("admin", "admin")
    .UseAuthorization() // Enable authorization checks
    .AddBlazorUI("/semantico");

Configuration Options

  • BaseUrl: Set the base URL for notification links
  • Custom UI Path: Change from /semantico to any path
  • Authorization Provider: Implement custom permission logic
  • Email Adapter: Configure email notifications

Documentation

License

MIT License - see LICENSE

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.0.7.1 110 1/9/2026
2.0.6.1 576 12/9/2025
2.0.5.4 362 12/8/2025
2.0.5.3 238 12/4/2025
2.0.5.2 199 12/3/2025
2.0.5.1 699 12/2/2025
2.0.4.1 215 11/26/2025
2.0.3.1 372 11/12/2025
2.0.2.4 259 10/30/2025
2.0.2.3 196 10/30/2025
2.0.2.2 194 10/30/2025
2.0.2.1 201 10/30/2025