SystemLibrary.Common.Web
8.4.0.5
Additional Details
Replaced by nuget package: SystemLibrary.Common.Framework
dotnet add package SystemLibrary.Common.Web --version 8.4.0.5
NuGet\Install-Package SystemLibrary.Common.Web -Version 8.4.0.5
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="SystemLibrary.Common.Web" Version="8.4.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SystemLibrary.Common.Web" Version="8.4.0.5" />
<PackageReference Include="SystemLibrary.Common.Web" />
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 SystemLibrary.Common.Web --version 8.4.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SystemLibrary.Common.Web, 8.4.0.5"
#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.
#addin nuget:?package=SystemLibrary.Common.Web&version=8.4.0.5
#tool nuget:?package=SystemLibrary.Common.Web&version=8.4.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SystemLibrary Common Web
OBSOLETED BY SystemLibrary.Common.Framework
- https://github.com/systemlibrary/systemlibrary-common-framework
- https://www.nuget.org/packages/SystemLibrary.Common.Framework/ NOTE: Framework contains the same functionality, and more, and better performance in some areas
Description
Library with classes and methods for every >= .NET 8 web application
Features
- Setup IApplicationBuilder and IServiceCollection in one line
- services.AddCommonWebServices();
- Registers services for compression, MVC, routing requests to controllers and more...
- app.CommonWebApplicationBuilder();
- Enables serving static file types (css, js, png, jpg, ...)
- Enables compression
- Maps requests to controllers
- Enables Authorization and Authentication attributes
- services.AddCommonWebServices();
Modules
- Client
- Reuses the underlying TCP connection for more than 250 seconds, saving 10's of milliseconds on subsequent requests
- Recreates the underlying HttpClient every 20 minutes to minimize to transient network failures
- Retries 502 and 504 status codes once on a new TCP connection
- Cache
- Auto-generating cache keys based on variables in "function scope"
- A 3 minute default cache duration
- A 10 minute fallback cache in case of Get() throws exception
- HttpContextInstance.Current thread safe from within a Http Context
- ActionContextInstance.Current thread safe from within a Action Context
Requirements
- >= .NET 8
- Microsoft.AspNetCore.App Framework
Latest Release Notes
- 8.4.0.5
- Final version
- Made obsolete by SystemLibrary.Common.Framework (contains all this nuget pacakge does and more!)
Major Breaking Versions
- 7.8.0.1
- HttpBaseClient rewritten to Client
- Cache.Get auto generate key is triggered on cacheKey "", not null as previously
- Cache.Get always have a fallback, configure it's fallback duration, set to 0 for disabling it
- Log.Level is read from Microsofts 'Logging' in appSettings if not existing in the 'packageConfig'
- Requires minimum SystemLibrary.Common.Net 7.13.0.7
Version history
- View git history of this file if interested
Installation
Documentation
Nuget
Source
Suggestions and feedback
License
- Free
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (>= 8.0.11)
- Microsoft.Extensions.FileProviders.Physical (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.11)
- prometheus-net (>= 8.2.1)
- SystemLibrary.Common.Net (>= 8.3.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.