N2.Core
1.4.1
dotnet add package N2.Core --version 1.4.1
NuGet\Install-Package N2.Core -Version 1.4.1
<PackageReference Include="N2.Core" Version="1.4.1" />
<PackageVersion Include="N2.Core" Version="1.4.1" />
<PackageReference Include="N2.Core" />
paket add N2.Core --version 1.4.1
#r "nuget: N2.Core, 1.4.1"
#:package N2.Core@1.4.1
#addin nuget:?package=N2.Core&version=1.4.1
#tool nuget:?package=N2.Core&version=1.4.1
N2.Core
Generic core utilities for any project.
Usage
Specific usage examples are provided in the code snippets below. The library is designed to be easy to use and integrate into your projects.
LocalizedTextService
The LocalizedTextService
provides localized text based on resource files and supports caching for improved performance.
The service uses IMemoryCache
to cache resource lookups, preventing repeated loading of the same key for the same culture.
The information is retrieved from a resource file, which is a .resx file that contains key-value pairs for different cultures.
Configure the dependencies in your Startup.cs
or Program.cs
file.
Example
var resourceManager = new ResourceManager("N2.Core.Resources", typeof(LocalizedTextService).Assembly);
var memoryCache = new MemoryCache(new MemoryCacheOptions());
var textService = new LocalizedTextService(resourceManager, memoryCache);
string globalText = textService.GetGlobalText("Hello"); // Cached after the first call
Product | Versions 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 is compatible. 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 is compatible. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Caching.Memory (>= 9.0.5)
- Microsoft.Extensions.Configuration (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.5)
- Microsoft.Extensions.Configuration.Json (>= 9.0.5)
- Microsoft.Extensions.Configuration.UserSecrets (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
- Microsoft.Extensions.Logging (>= 9.0.5)
- Microsoft.Extensions.Logging.Console (>= 9.0.5)
- N2.Core.Abstractions (>= 1.4.0)
- System.Identitymodel.Tokens.Jwt (>= 8.11.0)
- System.IO.Abstractions (>= 22.0.14)
-
.NETStandard 2.1
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Caching.Memory (>= 9.0.5)
- Microsoft.Extensions.Configuration (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.5)
- Microsoft.Extensions.Configuration.Json (>= 9.0.5)
- Microsoft.Extensions.Configuration.UserSecrets (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
- Microsoft.Extensions.Logging (>= 9.0.5)
- Microsoft.Extensions.Logging.Console (>= 9.0.5)
- N2.Core.Abstractions (>= 1.4.0)
- System.Identitymodel.Tokens.Jwt (>= 8.11.0)
- System.IO.Abstractions (>= 22.0.14)
-
net8.0
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Caching.Memory (>= 9.0.5)
- Microsoft.Extensions.Configuration (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.5)
- Microsoft.Extensions.Configuration.Json (>= 9.0.5)
- Microsoft.Extensions.Configuration.UserSecrets (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
- Microsoft.Extensions.Logging (>= 9.0.5)
- Microsoft.Extensions.Logging.Console (>= 9.0.5)
- N2.Core.Abstractions (>= 1.4.0)
- System.Identitymodel.Tokens.Jwt (>= 8.11.0)
- System.IO.Abstractions (>= 22.0.14)
-
net9.0
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Caching.Memory (>= 9.0.5)
- Microsoft.Extensions.Configuration (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.5)
- Microsoft.Extensions.Configuration.Json (>= 9.0.5)
- Microsoft.Extensions.Configuration.UserSecrets (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
- Microsoft.Extensions.Logging (>= 9.0.5)
- Microsoft.Extensions.Logging.Console (>= 9.0.5)
- N2.Core.Abstractions (>= 1.4.0)
- System.Identitymodel.Tokens.Jwt (>= 8.11.0)
- System.IO.Abstractions (>= 22.0.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on N2.Core:
Package | Downloads |
---|---|
N2.LoggingService
Library for process logging |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.4.1 | 149 | 7/1/2025 |
1.4.0 | 146 | 6/19/2025 |
1.3.7 | 292 | 6/11/2025 |
1.2.0-pre-0605-a | 157 | 6/5/2025 |
1.2.0-pre-0603-a | 142 | 6/3/2025 |
1.2.0-pre-0602-a | 154 | 6/3/2025 |
1.2.0-pre-0424-a | 165 | 4/24/2025 |
1.2.0-pre-0418-a | 166 | 4/18/2025 |
1.1.3-pre-0417-a | 182 | 4/17/2025 |
1.1.1 | 215 | 4/15/2025 |
1.0.10 | 191 | 8/6/2024 |
1.0.9 | 116 | 8/5/2024 |
1.0.3 | 143 | 5/7/2024 |
1.0.1 | 154 | 4/3/2024 |
1.0.0 | 145 | 3/29/2024 |