SmallEarthTech.AntPlus.Extensions.Hosting 2.0.1

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

Small Earth Technology ANT+ Hosting Extensions

If you use dependency injection to compose your apps, check this extension out! With a few lines added to the DI container/host builder, the complete library is ready to be used by the app. Here's a snippet from the WPF sample -

    // dependency services
    _host = Host.CreateDefaultBuilder(Environment.GetCommandLineArgs()).
        UseSerilog().
        UseAntPlus().   // this adds all the required dependencies to use the ANT+ class library
        ConfigureServices(services =>
        {
            // add the implementation of IAntRadio to the host
            services.AddSingleton<IAntRadio, AntRadio>();
        }).
        Build();
        .
        .
        .
    // create the device collection - this starts scanning for devices
    AntDevices = _host.Services.GetRequiredService<AntCollection>();

MAUI apps can also invoke UseAntPlus() to add the dependencies to MauiApp.CreateBuilder().

An ==important== benefit of using dependency injection is that you can now add ANT devices not supported by the current ANT+ Class Library. A detailed guide on how to do this is available in the documentation. You can also set the global ANT device timeout from a variety of sources such as the command line, appsettings.json, etc. and let the DI container inject them into the ANT+ Class Library.

Open Source Maintenance Fee

This project requires an Open Source Maintenance Fee. While the source code is freely available under the terms of the LICENSE, all other aspects of the project--including participating in discussions and downloading releases--require adherence to the Maintenance Fee.

In short, if you use this project to generate revenue, the Maintenance Fee is required. Note that a portion of the fee sponsors other open source projects that this project uses.

To pay the Maintenance Fee, become a Sponsor.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.1 140 6/16/2025
2.0.0 107 4/26/2025
1.2.1 141 3/27/2025
1.2.0 217 3/3/2025
1.1.2 114 2/19/2025
1.1.1 124 2/13/2025
1.1.0 157 12/31/2024
1.0.0 158 8/24/2024

Updated NuGet packages.