Nabs.Launchpad.Core.Context 10.0.232

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

NuGet

Nabs.Launchpad.Core.Context

Nabs.Launchpad.Core.Context centralizes user, tenant, and portal context objects so cross-service behavior stays consistent.

Installation

dotnet add package Nabs.Launchpad.Core.Context

The Problem

// 1) User metadata copied between layers
var userId = http.User.FindFirst("oid")?.Value;

// 2) Tenant and portal configuration passed as untyped dictionaries
Dictionary<string, object> context = new();

// 3) Orleans request metadata becomes ad-hoc string keys
RequestContext.Set("usr", value);

Features

  • Typed context models (UserContext, TenantContext, PortalContext)
  • Navigation definitions via NavigationItem
  • Orleans-friendly helpers through UserContextExtensions

Usage

var portal = new PortalContext
{
    PortalName = "admin",
    PortalDisplayName = "Admin Portal",
    PortalBasePath = "/admin"
};

var user = new UserContext
{
    IsAuthenticated = true,
    ObjectId = "user-123",
    DisplayName = "Taylor"
};

Configuration

Register context objects in DI with the lifetime expected by your app (singleton for portal metadata, scoped for user state).

Project Structure

  • PortalContext.cs - portal metadata and navigation state
  • UserContext.cs / TenantContext.cs - request-level context models
  • UserContextExtensions.cs - Orleans context access helpers

License

Copyright (c) Net Advantage Business Solutions.

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 (4)

Showing the top 4 NuGet packages that depend on Nabs.Launchpad.Core.Context:

Package Downloads
Nabs.Launchpad.Ui.Shell

Package Description

Nabs.Launchpad.Core.Silo

Package Description

Nabs.Launchpad.Ui.Shell.Blazor.Sf

Package Description

Nabs.Launchpad.Core.Portal

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.