Digiarc.AspNetCore.Extensions
1.0.1.5
Prefix Reserved
See the version list below for details.
dotnet add package Digiarc.AspNetCore.Extensions --version 1.0.1.5
NuGet\Install-Package Digiarc.AspNetCore.Extensions -Version 1.0.1.5
<PackageReference Include="Digiarc.AspNetCore.Extensions" Version="1.0.1.5" />
paket add Digiarc.AspNetCore.Extensions --version 1.0.1.5
#r "nuget: Digiarc.AspNetCore.Extensions, 1.0.1.5"
// Install Digiarc.AspNetCore.Extensions as a Cake Addin
#addin nuget:?package=Digiarc.AspNetCore.Extensions&version=1.0.1.5
// Install Digiarc.AspNetCore.Extensions as a Cake Tool
#tool nuget:?package=Digiarc.AspNetCore.Extensions&version=1.0.1.5
Digiarc (Pty) Ltd
Digiarc is an innovative company that strives for customer satisfaction and world class service. We offer bespoke business software solutions with up-to-date technology and well formed processes.
Installation
You can use the NUGET package manager for installation.
Platform Support
This package is made for ASP.Net Core applications as it makes use of dependency injection on the IServiceCollection.
Usage
using Digiarc.AspNetCore.Extensions;
# ConfigureServices(IServiceCollection services)
services.AddCors(options =>
{
options.AddDefaultPolicy(builder => builder.WithMethods("GET").AllowAnyOrigin().AllowAnyHeader().AllowExposedHeaders());
});
# Invoke Claim Pricipal (Controller)
[HttpGet]
[Route("[action]")]
public IActionResult Test()
{
var userId = User.GetNameIdentifier();
if (!userId.HasValue)
return Ok(new { statusCode = StatusCodes.Status403Forbidden, success = false, value = "Name Identifier cannot be null" });
return Ok(new { statusCode = StatusCodes.Status200OK, success = true, value = $"User Id: {userId}" });
}
Contributing
Contributions will not be accepted as this not an open source project.
License
This package is licensed under LGPL and will not accept external intervention.
For more information you can visit the GNU Lesser General Public License Page.
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 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- Microsoft.AspNetCore.Cors (>= 2.2.0)
- Microsoft.AspNetCore.Hosting (>= 2.2.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Upgrade to .Net Standard 2.1