CCSWE.nanoFramework.Hosting 1.1.140

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

Build License NuGet

CCSWE.nanoFramework.Hosting

Hosting and startup infrastructure for nanoFramework applications, modelled after the .NET Generic Host. Provides a structured way to wire up dependency injection, run initialization logic, and start long-running background services.

Startup sequence

  1. Services are registered via ConfigureServices
  2. IDeviceInitializer implementations run in registration order — if any returns false, startup is aborted
  3. IHostedService.StartAsync is called for each registered hosted service

API

DeviceHost

Static factory with a single entry point:

DeviceHost.CreateDefaultBuilder()
    .ConfigureServices((context, services) =>
    {
        services.AddSingleton(typeof(IDeviceInitializer), typeof(MyInitializer));
        services.AddHostedService(typeof(MyService));
    })
    .Build()
    .Run();

IDeviceInitializer

Implement to run initialization logic before hosted services start:

public class MyInitializer : IDeviceInitializer
{
    public bool Initialize()
    {
        // return false to abort startup
        return true;
    }
}

IHostedService

Standard nanoFramework hosting interface for long-running background work. Register via services.AddHostedService(typeof(MyService)).

Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
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
1.1.140 53 6/26/2026
1.1.139 50 6/24/2026
1.1.138 44 6/24/2026
1.1.137 48 6/24/2026
1.1.136 103 6/23/2026
1.1.135 110 6/1/2026
1.1.134 108 6/1/2026
1.1.133 98 6/1/2026
1.1.130 99 5/31/2026
1.1.129 120 4/23/2026
1.1.128 108 4/23/2026
1.1.127 122 4/15/2026
1.1.124 113 4/15/2026
1.1.123 108 4/14/2026
1.1.122 109 4/13/2026
1.1.117 104 4/13/2026
1.1.114 113 4/10/2026
1.1.113 102 4/10/2026
1.1.112 110 4/9/2026
1.1.104 103 4/8/2026
Loading failed