Skip to content

Commit f812113

Browse files
committed
Update HostExtensions and increment version to 1.1.0.0
Rrevised class documentation for clarity. Added a new extension method, AddAntPlusServices(), to HostingExtensionsOverview.aml. Incremented AssemblyVersion in Hosting.csproj to 1.1.0.0.
1 parent 1215f0b commit f812113

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

AntPlus.Extensions.Hosting/HostExtensions.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
namespace SmallEarthTech.AntPlus.Extensions.Hosting
1111
{
1212
/// <summary>
13-
/// This class provides static methods to configure the application host builder. MAUI apps and standard Windows apps are supported.
13+
/// Provides extension methods for configuring AntPlus services in a host builder or custom
14+
/// DI container.
1415
/// </summary>
1516
public static class HostExtensions
1617
{
@@ -21,7 +22,7 @@ public static class HostExtensions
2122
internal static IServiceCollection? ServiceCollection;
2223

2324
/// <summary>
24-
/// Adds AntPlus classes to host builder service services.
25+
/// Adds AntPlus classes to host builder services.
2526
/// </summary>
2627
/// <param name="builder">The host app builder</param>
2728
/// <returns>The host app builder</returns>
@@ -35,7 +36,7 @@ public static IHostBuilder UseAntPlus(this IHostBuilder builder)
3536
}
3637

3738
/// <summary>
38-
/// Adds AntPlus classes to MAUI builder service services.
39+
/// Adds AntPlus classes to MAUI builder services.
3940
/// </summary>
4041
/// <param name="builder">The MAUI host app builder</param>
4142
/// <returns>The MAUI host app builder</returns>

AntPlus.Extensions.Hosting/Hosting.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1919
<IncludeSymbols>True</IncludeSymbols>
2020
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
21-
<AssemblyVersion>1.0.1.0</AssemblyVersion>
21+
<AssemblyVersion>1.1.0.0</AssemblyVersion>
2222
<Version>$(VersionPrefix)$(AssemblyVersion)</Version>
2323
</PropertyGroup>
2424

Documentation/Content/HostingExtensions/HostingExtensionsOverview.aml

+11-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@
3333
<!-- Uncomment this to create a sub-section outline
3434
<autoOutline /> -->
3535
<para>
36-
This class provides two static methods to add the ANT+ classes to the host builder. UseAntPlus() is overloaded
37-
to work with IHostBuilder implementations and MauiAppBuilder implementations.
38-
Their purpose is identical; inject all the ANT+ devices and support infrastructure into the DI container.
39-
The TimeoutOptions class will also be added to the DI container and the configuration is bound by the container.
40-
</para>
36+
This class provides two extension methods to add the ANT+ classes to the host builder. UseAntPlus() is overloaded
37+
to work with IHostBuilder implementations and MauiAppBuilder implementations.
38+
Their purpose is identical; inject all the ANT+ devices and support infrastructure into the DI container.
39+
</para>
40+
<para>
41+
An additional extension method, AddAntPlusServices(), is provided to add the ANT+ classes to an IServiceCollection when UseAntPlus()
42+
is not suitable.
43+
</para>
44+
<para>
45+
The TimeoutOptions class will also be added to the DI container and the configuration is bound by the container.
46+
</para>
4147
</content>
4248
<!-- If a section contains a sections element, its content creates
4349
sub-sections. These are not collapsible.

0 commit comments

Comments
 (0)