NetCoreUsefullEndpoints 6.2022.1231.1100

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetCoreUsefullEndpoints --version 6.2022.1231.1100
                    
NuGet\Install-Package NetCoreUsefullEndpoints -Version 6.2022.1231.1100
                    
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="NetCoreUsefullEndpoints" Version="6.2022.1231.1100" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetCoreUsefullEndpoints" Version="6.2022.1231.1100" />
                    
Directory.Packages.props
<PackageReference Include="NetCoreUsefullEndpoints" />
                    
Project file
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 NetCoreUsefullEndpoints --version 6.2022.1231.1100
                    
#r "nuget: NetCoreUsefullEndpoints, 6.2022.1231.1100"
                    
#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.
#:package NetCoreUsefullEndpoints@6.2022.1231.1100
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NetCoreUsefullEndpoints&version=6.2022.1231.1100
                    
Install as a Cake Addin
#tool nuget:?package=NetCoreUsefullEndpoints&version=6.2022.1231.1100
                    
Install as a Cake Tool

NetCoreUsefullEndpoints

CI build status NuGet Package Project license

What it does

Register endpoints for

  1. See environment variables
  2. See current user ( implies authorization )
  3. See environment
  4. Throw error ( with ILogger or without )
  5. Current Date
  6. Digraph of current endpoints
  7. JSON of current endpoints
  8. Configuration View ( GetDebugView )
  9. Connection details ( remote ip address, local ip address...)
  10. Restart the app ( use await app.RunAsync(UsefullExtensions.UsefullExtensions.cts.Token);

Usage

Add this reference to your csproj in .NET 6

<ItemGroup>
    <PackageReference Include="NetCoreUsefullEndpoints" Version="6.2022.1231.1100" />
  </ItemGroup>

or in .NET 7

<ItemGroup>
    <PackageReference Include="NetCoreUsefullEndpoints" Version="7.2022.1231.1100" />
  </ItemGroup>

then use it in program.cs

using UsefullExtensions;
//code
var app = builder.Build();
app.MapUsefullAll();
//or for just some usefull
app.MapUsefullConfiguration();

The list of API endpoints is

GET=>/api/usefull/user/authorization

GET=>/api/usefull/user/noAuthorization

GET=>/api/usefull/environment

GET=>/api/usefull/errorWithILogger

GET=>/api/usefull/errorPure

GET=>/api/usefull/date

GET=>/api/usefull/endpoints/graph

GET=>/api/usefull/endpoints/text

GET=>/api/usefull/configuration

GET=>/api/usefull/httpContext/Connection

POST=>/api/usefull/shutdown

Security

Each function has a default implementation with AllowAnonymous ( a part user ) and without put RequireCors ; If you want a special case here, call the functions with

app.MapUsefullAll("myCors", new string[] {"myAuthPolicy"});
//or
app.MapUsefullConfiguration();

Enjoy!

Product 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.  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.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.2026.1002.528 159 10/4/2026
9.2025.826.514 1,298 8/26/2025
9.2025.405.1013 315 4/5/2025
9.2025.312.1703 359 3/12/2025
8.2024.906.1703 332 9/7/2024
8.2024.627.800 298 6/27/2024
7.2023.1216.1825 2,744 12/19/2023
7.2023.916.1715 470 9/16/2023
7.2023.402.1715 505 4/2/2023
7.2023.223.1815 1,704 2/23/2023
7.2023.219.2234 478 2/16/2023
7.2023.219.2134 468 2/15/2023
7.2023.219.2034 449 2/14/2023
7.2023.219.1934 544 2/10/2023
7.2023.219.841 475 2/10/2023
7.2023.207.2230 525 2/7/2023
7.2023.126.700 546 1/26/2023
7.2022.1231.1100 531 12/31/2022
7.2022.1203.1551 587 12/3/2022
6.2022.1231.1100 521 12/31/2022
Loading failed