SonghayCore 6.1.4
dotnet add package SonghayCore --version 6.1.4
NuGet\Install-Package SonghayCore -Version 6.1.4
<PackageReference Include="SonghayCore" Version="6.1.4" />
paket add SonghayCore --version 6.1.4
#r "nuget: SonghayCore, 6.1.4"
// Install SonghayCore as a Cake Addin #addin nuget:?package=SonghayCore&version=6.1.4 // Install SonghayCore as a Cake Tool #tool nuget:?package=SonghayCore&version=6.1.4
SonghayCore
The Core code to install as a NuGet package for all of my studio Solutions. Anyone who may be reading this π is free to do the same. This package is based on a project file that supports multi-targeting, declaring support for net6.0
.
NuGet package π¦: SonghayCore
documentation π: SonghayCore
API
coverlet test coverage π¬β: [report]
core reusable, opinionated concerns
Songhay.Hosting
One of the most important additions to .NET came in .NET 6.0 (circa 2021): the .NET Generic Host [π docs]. This host concept from Microsoft allows developers to not have to reinvent:
- Dependency injection (DI)
- Logging
- Configuration
- App shutdown
IHostedService
implementations (for long-running background tasks [π docs ])
All ASP.NET developers expect to get these things βfor freeβ and, finally, Microsoft is basically letting all .NET developers get these things for free. This Core recognizes the .NET Generic Host, stating with the DefaultHostedService
class (see Songhay.Extensions
below for more details).
Songhay.Diagnostics
This Core is concerned with tracing as well as logging. Logging concerns should be logically above this Core. TraceSources
and TraceSourceExtensions
define how tracing should be implemented with a bias toward using all source levels. When tracing is not configured for this Core then it will be ignored without throwing exceptions.
For a review of the organizational difference between tracing and logging, see βTracing vs Logging vs Monitoring: Whatβs the Difference?β by Chrissy Kidd.
Documentation π: Songhay.Diagnostics
Songhay.Extensions
The Songhay System uses imperative C# code with a view to make it more functional in an effort to control complexity and enhance maintainability.
The preference for extension methods encourages stateless, reusable routines (many of them are βpureβ functions).
Notable extensions:
IConfigurationExtensions
β defines shared routines based on conventions around the .NET Generic Host [π docs].IConfigurationBuilderExtensions
β defines shared routines for application configuration building under .NET Standard.ILoggerExtensions
β defines shared routines based on conventions around the .NET Generic Host [π docs].HttpRequestMessageExtensions
β defines shared routines for HTTP access under .NET Standard with a lazy-loadedHttpClient
. Routines for Azure Blob Storage are included here.HttpWebRequestExtensions
β defines shared routines for HTTP access for the legacy .NET Framework.
There is support for URI templates (to be used with RestApiMetadata
) in the form of extension methods, running on top of Tavis.UriTemplates
.
Documentation π: Songhay.Extensions
Songhay.Models
The Core models of the Songhay System define types for MIME, XHTML, OPML, REST, the Repository, the Display Item (for WPF and other MVVM solutions), etc.
The Core models are βanemicβ by design (there are very few abstract classes)βany logic would be found first in an Extension Method.
Notable models:
DisplayItemModel
β defines the conventional way to display data.MenuDisplayItemModel
β defines the conventional way to display nested/grouped data.RestApiMetadata
β defines conventional REST API metadata.
Documentation π: Songhay.Models
Songhay.Xml
The βcoreβ of the Core is concern for XML. The Songhay System started out as utilities around XPathDocument
and grew into LINQ for XMLβover XDocument
.
Documentation π: Songhay.Xml
satellite packages
SonghayCore.xUnit
Defines reusable class definitions for xUnit. Featured is the ProjectFileDataAttribute
, allowing test data files to be loaded from a relative path.
NuGet package π¦: SonghayCore.xUnit
Documentation π: Songhay.Tests
SonghayCore.Newtonsoft
Core reusable, opinionated Newtonsoft concerns for my C# projects.
GitHub repo: https://github.com/BryanWilhite/SonghayCore.Newtonsoft
NuGet package π¦: SonghayCore.Newtonsoft
Studio packages dependent on SonghayCore
graph BT
netstandard2[.NET Standard 2.0]
net6[.NET 6.0]
1[`SonghayCore`]
2[`SonghayCore.Newtonsoft`]
net6-->1
netstandard2-->2
2-..->|optional addition|1
1-->3[`SonghayCore.xUnit`]
1-->4[`Songhay.DataAccess`]
1-->5[`Songhay.Feeds`]
1-->6[`Songhay.Publications`]
1-->7[`Songhay.Social`]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- Microsoft.Extensions.Hosting (>= 6.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Configuration.ConfigurationManager (>= 6.0.1)
- System.ServiceModel.Syndication (>= 6.0.0)
- Tavis.UriTemplates (>= 2.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on SonghayCore:
Package | Downloads |
---|---|
SonghayCore.MSTest
Extensions of Microsoft.VisualStudio.TestTools.UnitTesting.TestContext for Songhay VSTEST projects |
|
Songhay.Publications
Core reusable definitions for Songhay Studio Publications |
|
Songhay.Cloud.BlobStorage
Azure BLOB Storage Repositories for JSON files in the Cloud |
|
SonghayCore.xUnit
Extensions and Orderers for Songhay xUnit projects |
|
Songhay.Mvvm
Songhay Model, View, View-Model definitions for WPF (with Prism) |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.1.4 | 248 | 6/26/2024 |
6.1.3 | 94 | 6/26/2024 |
6.1.2 | 175 | 6/8/2024 |
6.1.1 | 178 | 2/20/2024 |
6.1.0 | 164 | 1/29/2024 |
6.0.4 | 491 | 11/1/2022 |
6.0.3 | 459 | 10/17/2022 |
6.0.2 | 446 | 10/17/2022 |
6.0.1 | 1,064 | 7/23/2022 |
6.0.0 | 1,018 | 7/17/2022 |
5.2.2 | 969 | 5/21/2022 |
5.2.1 | 2,149 | 6/26/2021 |
5.2.0 | 1,391 | 6/7/2021 |
5.1.2 | 2,658 | 5/16/2021 |
5.1.1 | 1,281 | 5/15/2021 |
5.1.0 | 889 | 5/15/2021 |
5.0.0 | 4,008 | 1/1/2021 |
3.2.20 | 1,924 | 7/12/2020 |
3.2.19 | 2,736 | 6/28/2020 |
3.2.18 | 2,249 | 2/13/2020 |
3.2.17 | 2,250 | 12/25/2019 |
3.2.16 | 2,095 | 12/17/2019 |
3.2.15 | 3,198 | 12/5/2019 |
3.2.14 | 1,382 | 12/5/2019 |
3.2.13 | 1,403 | 12/5/2019 |
3.2.12 | 2,089 | 11/29/2019 |
3.2.11 | 593 | 11/29/2019 |
3.2.10 | 2,427 | 11/28/2019 |
3.2.9 | 2,844 | 11/23/2019 |
3.2.8 | 2,708 | 11/18/2019 |
3.2.7 | 1,488 | 9/26/2019 |
3.2.6 | 716 | 8/6/2019 |
3.2.5 | 1,567 | 7/12/2019 |
3.2.4 | 646 | 7/12/2019 |
3.2.3 | 1,845 | 6/10/2019 |
3.2.2 | 1,254 | 6/8/2019 |
3.2.1 | 1,004 | 5/31/2019 |
3.2.0 | 1,824 | 5/18/2019 |
3.1.2 | 742 | 5/14/2019 |
3.1.1 | 777 | 5/14/2019 |
3.1.0 | 755 | 5/14/2019 |
3.0.0 | 1,538 | 5/8/2019 |
2.8.8 | 1,071 | 1/30/2019 |
2.8.7 | 6,281 | 9/14/2018 |
2.8.6 | 2,656 | 8/29/2018 |
2.8.5 | 1,367 | 6/1/2018 |
2.8.4 | 2,030 | 4/26/2018 |
2.8.3 | 1,160 | 4/26/2018 |
2.8.2 | 1,155 | 4/25/2018 |
2.8.1 | 1,927 | 3/21/2018 |
2.8.0 | 1,607 | 3/16/2018 |
2.7.4 | 1,681 | 3/12/2018 |
2.7.3 | 1,169 | 3/9/2018 |
2.7.2 | 1,010 | 3/8/2018 |
2.7.1 | 1,218 | 3/7/2018 |
2.7.0 | 1,198 | 3/1/2018 |
2.6.5 | 1,281 | 2/4/2018 |
2.6.4 | 1,111 | 1/25/2018 |
2.6.3 | 1,145 | 1/24/2018 |
2.6.2 | 3,317 | 1/23/2018 |
2.6.1 | 1,169 | 1/22/2018 |
2.6.0 | 1,195 | 1/22/2018 |
2.5.4 | 1,085 | 11/26/2017 |
2.5.3 | 1,039 | 11/24/2017 |
2.5.2 | 1,058 | 11/11/2017 |
2.5.1 | 1,042 | 11/11/2017 |
2.5.0 | 1,049 | 11/11/2017 |
2.4.0 | 1,634 | 11/4/2017 |
2.3.1 | 4,094 | 10/29/2017 |
2.3.0 | 1,379 | 10/27/2017 |
2.2.1 | 1,002 | 10/23/2017 |
2.1.1 | 1,049 | 10/23/2017 |
2.1.0 | 1,049 | 10/23/2017 |
2.0.0 | 1,009 | 10/20/2017 |
1.7.1 | 1,115 | 7/31/2017 |
1.7.0 | 1,100 | 6/1/2017 |
1.6.7 | 1,166 | 4/17/2017 |
1.6.6 | 1,110 | 4/16/2017 |
1.6.5 | 1,120 | 4/16/2017 |
1.6.4 | 1,112 | 4/16/2017 |
1.6.3 | 1,051 | 4/13/2017 |
1.6.2 | 1,128 | 3/9/2017 |
1.6.1 | 1,202 | 10/18/2016 |
1.6.0 | 1,158 | 10/18/2016 |
1.5.0 | 1,120 | 10/17/2016 |
1.4.0 | 1,154 | 10/15/2016 |
1.3.0 | 1,124 | 10/11/2016 |
1.2.0 | 1,538 | 9/24/2016 |
1.1.0 | 1,527 | 9/22/2016 |
1.0.1 | 1,191 | 8/31/2016 |
1.0.0 | 5,004 | 8/25/2016 |