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 servicesShellSettings- Configuration model for shell settingsIShellInitializer- Startup hook resolved from the shell provider before a shell becomes activeLifecyclePhase,LifecycleOrderAttribute, andAddShellInitializer<T>()- First-class initializer ordering APIsIDrainHandler- 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
- Main Documentation
- CShells Package - Core runtime implementation
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 |
.NET 10.0
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
.NET 8.0
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.Extensions.Configuration (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Options (>= 9.0.11)
.NET 9.0
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.Extensions.Configuration (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Options (>= 9.0.11)
| 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 |