Codefactors.Authentication
1.0.48
Prefix Reserved
dotnet add package Codefactors.Authentication --version 1.0.48
NuGet\Install-Package Codefactors.Authentication -Version 1.0.48
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="Codefactors.Authentication" Version="1.0.48" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codefactors.Authentication" Version="1.0.48" />
<PackageReference Include="Codefactors.Authentication" />
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 Codefactors.Authentication --version 1.0.48
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Codefactors.Authentication, 1.0.48"
#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 Codefactors.Authentication@1.0.48
#: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=Codefactors.Authentication&version=1.0.48
#tool nuget:?package=Codefactors.Authentication&version=1.0.48
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Codefactors.DataFabric
Data synchronisation layer for C# and TypeScript
Codefactors.DataFabric is a library that provides a simple and efficient way to subscribe to data changes in a database. It is designed to be used in a microservices architecture where services need to be notified of changes in a database.
SignalR Transport
using Microsoft.AspNetCore.SignalR;
using Codefactors.DataFabric.Subscriptions;
using Codefactors.DataFabric.Transport;
using Codefactors.DataFabric.Transport.SignalR;
namespace Codefactors.DataFabric.WebApi.Transport;
public class SignalRHelper(Uri hubPath) : ITransportHelper
{
private readonly Uri _hubPath = hubPath;
public void Initialise(IServiceCollection services)
{
services.AddSingleton<IUserIdProvider, SignalRUserIdProvider>();
services.AddSignalR();
services.AddSingleton<IDataFabricTransport, SignalRTransport>();
services.AddSingleton<ISubscriptionFactory, SignalRSubscriptionFactory>();
}
public void InitialiseMiddleware(object app)
{
if (app is WebApplication application)
{
application.UseMiddleware<SignalRAuthenticationMiddleware>(_hubPath.ToString());
}
else
{
throw new ArgumentException("Unable to initialise transport middleware; invalid application type");
}
}
public void Start(object app)
{
if (app is WebApplication application)
{
application.MapHub<NotificationHub>(_hubPath.ToString())
.RequireAuthorization();
}
else
{
throw new ArgumentException("Unable to start transport; invalid application type");
}
}
}
License
This project is licensed under the MIT License.
| 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 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.10)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- System.Security.Claims (>= 4.3.0)
-
net9.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.10)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- System.Security.Claims (>= 4.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Codefactors.Authentication:
| Package | Downloads |
|---|---|
|
Codefactors.DataFabric
Package Description |
|
|
Codefactors.DataFabric.Transport.SignalR
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.48 | 385 | 11/4/2024 |
| 1.0.47 | 176 | 11/4/2024 |
| 1.0.46 | 168 | 11/4/2024 |
| 1.0.45 | 203 | 10/28/2024 |
| 1.0.44 | 192 | 10/24/2024 |
| 1.0.43 | 173 | 10/24/2024 |
| 1.0.42 | 169 | 10/24/2024 |
| 1.0.41 | 178 | 10/15/2024 |
| 1.0.37 | 167 | 10/15/2024 |
| 1.0.33 | 219 | 9/12/2024 |
| 1.0.30 | 205 | 9/9/2024 |
| 1.0.29 | 198 | 9/9/2024 |
| 1.0.28 | 197 | 9/9/2024 |
| 1.0.27 | 195 | 9/9/2024 |
| 1.0.26 | 194 | 9/9/2024 |
| 1.0.25 | 200 | 9/9/2024 |
| 1.0.24 | 197 | 9/9/2024 |
| 1.0.23 | 200 | 9/6/2024 |
| 1.0.22 | 195 | 9/6/2024 |
| 1.0.21 | 200 | 9/4/2024 |
Loading failed