Codefactors.DataFabric.Transport.SignalR
1.0.48
Prefix Reserved
dotnet add package Codefactors.DataFabric.Transport.SignalR --version 1.0.48
NuGet\Install-Package Codefactors.DataFabric.Transport.SignalR -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.DataFabric.Transport.SignalR" Version="1.0.48" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codefactors.DataFabric.Transport.SignalR" Version="1.0.48" />
<PackageReference Include="Codefactors.DataFabric.Transport.SignalR" />
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.DataFabric.Transport.SignalR --version 1.0.48
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Codefactors.DataFabric.Transport.SignalR, 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.DataFabric.Transport.SignalR@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.DataFabric.Transport.SignalR&version=1.0.48
#tool nuget:?package=Codefactors.DataFabric.Transport.SignalR&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
- Codefactors.Authentication (>= 1.0.48)
- Codefactors.Common (>= 1.0.48)
- Codefactors.DataFabric (>= 1.0.48)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.10)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Hosting (>= 8.0.1)
-
net9.0
- Codefactors.Authentication (>= 1.0.48)
- Codefactors.Common (>= 1.0.48)
- Codefactors.DataFabric (>= 1.0.48)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.10)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Hosting (>= 8.0.1)
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 |
---|---|---|
1.0.48 | 119 | 11/4/2024 |
1.0.47 | 108 | 11/4/2024 |
1.0.46 | 105 | 11/4/2024 |
1.0.45 | 113 | 10/28/2024 |
1.0.44 | 105 | 10/24/2024 |
1.0.43 | 106 | 10/24/2024 |
1.0.42 | 108 | 10/24/2024 |
1.0.41 | 115 | 10/15/2024 |
1.0.37 | 115 | 10/15/2024 |
1.0.33 | 145 | 9/12/2024 |
1.0.30 | 132 | 9/9/2024 |
1.0.29 | 126 | 9/9/2024 |
1.0.28 | 123 | 9/9/2024 |
1.0.27 | 128 | 9/9/2024 |
1.0.26 | 130 | 9/9/2024 |
1.0.25 | 130 | 9/9/2024 |
1.0.24 | 126 | 9/9/2024 |
1.0.23 | 131 | 9/6/2024 |
1.0.22 | 137 | 9/6/2024 |
1.0.21 | 135 | 9/4/2024 |
1.0.20 | 149 | 8/23/2024 |
1.0.19 | 126 | 8/20/2024 |
1.0.16 | 137 | 8/14/2024 |
1.0.15 | 138 | 8/13/2024 |
1.0.14 | 139 | 8/12/2024 |
1.0.13 | 150 | 8/11/2024 |
1.0.12 | 130 | 8/10/2024 |
1.0.11 | 132 | 8/10/2024 |
1.0.6 | 123 | 8/8/2024 |
1.0.5 | 130 | 8/8/2024 |
1.0.4 | 139 | 8/8/2024 |