CShells.Abstractions 0.0.28

CShells.Abstractions

Core abstractions and interfaces for building shell features without dependencies on the full CShells framework.

Purpose

This package contains the fundamental interfaces and models needed to build CShells features. By referencing only this package in your feature libraries, you avoid pulling in the entire CShells runtime and its dependencies.

When to Use

  • Building feature libraries that will be consumed by CShells applications
  • Creating reusable features without coupling to the full framework
  • Keeping feature library dependencies minimal

Key Types

  • IShellFeature - Base interface for defining features that register services
  • ShellSettings - Configuration model for shell settings
  • IShellInitializer - Startup hook resolved from the shell provider before a shell becomes active
  • LifecyclePhase, LifecycleOrderAttribute, and AddShellInitializer<T>() - First-class initializer ordering APIs
  • IDrainHandler - Cooperative drain hook invoked in parallel while an old shell generation shuts down
  • Core abstractions for extensibility

Installation

dotnet add package CShells.Abstractions

Example Usage

using CShells.Features;
using CShells.Lifecycle;
using Microsoft.Extensions.DependencyInjection;

[ShellFeature("MyFeature")]
public class MyFeature : IShellFeature
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddSingleton<IMyService, MyService>();
        services.AddShellInitializer<MyFeatureInitializer>(
            LifecyclePhase.Prepare,
            order: 100);
    }
}

AddShellInitializer<T>() registers the initializer as transient and attaches deterministic phase/order metadata. Existing direct IShellInitializer registrations remain valid and run in LifecyclePhase.Default using DI registration order.

Learn More

Showing the top 20 packages that depend on CShells.Abstractions.

Packages Downloads
CShells.AspNetCore.Abstractions
ASP.NET Core abstractions for CShells. Contains interfaces and models for building web shell features without dependencies on the full CShells framework. Reference this package in your ASP.NET Core feature libraries.
1
CShells.FastEndpoints.Abstractions
FastEndpoints abstractions for CShells. Contains interfaces for integrating FastEndpoints with shell features. Reference this package when building shell features that expose FastEndpoints.
1

Version Downloads Last updated
0.0.28 1 06/20/2026
0.0.27 0 06/12/2026
0.0.26 0 06/12/2026
0.0.25 1 06/20/2026
0.0.24 1 06/20/2026
0.0.23 1 06/20/2026
0.0.22 0 05/14/2026
0.0.21 0 05/12/2026
0.0.20 1 06/20/2026
0.0.19 1 06/20/2026
0.0.18 1 06/20/2026
0.0.17 0 04/29/2026
0.0.16 1 06/20/2026
0.0.15 0 04/27/2026
0.0.14 0 04/20/2026
0.0.13 1 06/20/2026
0.0.12 1 06/20/2026
0.0.11 0 02/28/2026
0.0.10 0 02/24/2026
0.0.9 1 06/20/2026
0.0.8 1 06/20/2026
0.0.7 0 02/09/2026
0.0.6 1 06/20/2026
0.0.5 1 06/20/2026
0.0.4 0 12/05/2025