VOOZH about

URL: https://www.nuget.org/packages/Sidub.Messaging.Host.SignalR/

⇱ NuGet Gallery | Sidub.Messaging.Host.SignalR 1.0.14




👁 Image
Sidub.Messaging.Host.SignalR 1.0.14

Prefix Reserved
dotnet add package Sidub.Messaging.Host.SignalR --version 1.0.14
 
 
NuGet\Install-Package Sidub.Messaging.Host.SignalR -Version 1.0.14
 
 
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="Sidub.Messaging.Host.SignalR" Version="1.0.14" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sidub.Messaging.Host.SignalR" Version="1.0.14" />
 
Directory.Packages.props
<PackageReference Include="Sidub.Messaging.Host.SignalR" />
 
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 Sidub.Messaging.Host.SignalR --version 1.0.14
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sidub.Messaging.Host.SignalR, 1.0.14"
 
 
#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 Sidub.Messaging.Host.SignalR@1.0.14
 
 
#: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=Sidub.Messaging.Host.SignalR&version=1.0.14
 
Install as a Cake Addin
#tool nuget:?package=Sidub.Messaging.Host.SignalR&version=1.0.14
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Sidub Messaging - Messaging SignalR Host

This repository contains the messaging SignalR host for Sidub Messaging. It provides functionality to facilitate the messaging implementation on an Azure serverless SignalR service.

Azure serverless SignalR consists of an isolated Azure Function and an Azure SignalR service in serverless mode. The Azure Function is responsible for negotiation between clients and defining the messaging hubs, while the Azure SignalR service is responsible for managing the connections and broadcasting messages.

This package supports the creation of the creation of messaging hubs within the isolated Azure Function.

Main Concepts

Infrastructure

The Azure SignalR messaging service is dependent upon Azure infrastructure; while infrastructure may be manually created, it is recommended to use the provided Sidub Messaging application available on the Azure Marketplace. By deploying this application, the necessary Azure SignalR, Function, Storage, and other resources will be created automatically.

See https://azuremarketplace.microsoft.com/ for more information.

Function initialization

In order to utilize the library functionality, we must register the required services within the Azure Function. This is done by calling the AddSidubSignalRServer method on the IFunctionsWorkerApplicationBuilder object.

We must additionally configure the required options classes, such as the MessageServerOptions and AuthenticationOptions classes. These classes contain the necessary configuration for the messaging service and the authentication service, respectively.

var host = new HostBuilder()
 .ConfigureFunctionsWorkerDefaults((context, builder) =>
 {

 builder.Services.Configure<MessageServerOptions>(context.Configuration.GetSection(nameof(MessageServerOptions)));
 builder.AddSidubSignalRServer();

 })
 .ConfigureServices((context, services) =>
 {
 services.Configure<AuthenticationOptions>(context.Configuration.GetSection(nameof(AuthenticationOptions)));
 services.AddApplicationInsightsTelemetryWorkerService();
 services.ConfigureFunctionsApplicationInsights();
 })
 .Build();

host.Run();

Messaging hub

A messaging hub is a C# class that defines a messaging endpoint. Multiple endpoints can be defined within a single Azure Function.

To define a messaging hub, simply inherit from the MessagingHub class and decorate the class with the MessagingHubAttribute attribute. The attribute requires a unique name for the hub.

[MessagingHub("Chatroom")]
public class ChatroomHub : MessagingHub
{

 public ChatroomHub(IOptionsSnapshot<MessageServerOptions> options, IMessagingHubConnectionStore connectionStore, ILoggerFactory loggerFactory)
 : base(options, connectionStore, loggerFactory)
 {

 }

}

License

This project is licensed under a proprietary license. For details, see https://sidub.ca/licensing or the LICENSE.txt file.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.14 258 1/14/2025
1.0.8 215 10/2/2024