SystemLibrary.Common.Web 7.8.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package SystemLibrary.Common.Web --version 7.8.2.2                
NuGet\Install-Package SystemLibrary.Common.Web -Version 7.8.2.2                
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="7.8.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SystemLibrary.Common.Web --version 7.8.2.2                
#r "nuget: SystemLibrary.Common.Web, 7.8.2.2"                
#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.
// Install SystemLibrary.Common.Web as a Cake Addin
#addin nuget:?package=SystemLibrary.Common.Web&version=7.8.2.2

// Install SystemLibrary.Common.Web as a Cake Tool
#tool nuget:?package=SystemLibrary.Common.Web&version=7.8.2.2                

SystemLibrary Common Web

Description

Library with classes and methods for every >= .NET 7 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
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 7
  • Microsoft.AspNetCore.App Framework

Latest Release Notes

  • 7.8.2.2
  • ClientResponse now returns Data from ClientResponse<T> if it is set, so serializing a ClientResponse.Data is now doable without cast (fix)
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 Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SystemLibrary.Common.Web:

Package Downloads
SystemLibrary.Common.Episerver

Library with classes, methods and dijits for every .NET >= 7 episerver web application https://github.com/systemlibrary/systemlibrary-common-episerver/#Description Installation https://systemlibrary.github.io/systemlibrary-common-episerver/Install.html Documentation with sample code https://systemlibrary.github.io/systemlibrary-common-episerver/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.1.1.3 66 11/3/2024
7.8.2.2 75 10/24/2024
7.6.0.17 114 9/1/2024
6.9.1.2 466 10/18/2023 6.9.1.2 is deprecated.
2.1.1.1 564 6/26/2022 2.1.1.1 is deprecated.