MeshWeaver.Hosting.SignalR
2.1.0
dotnet add package MeshWeaver.Hosting.SignalR --version 2.1.0
NuGet\Install-Package MeshWeaver.Hosting.SignalR -Version 2.1.0
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="MeshWeaver.Hosting.SignalR" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Hosting.SignalR" Version="2.1.0" />
<PackageReference Include="MeshWeaver.Hosting.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 MeshWeaver.Hosting.SignalR --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.Hosting.SignalR, 2.1.0"
#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.
#addin nuget:?package=MeshWeaver.Hosting.SignalR&version=2.1.0
#tool nuget:?package=MeshWeaver.Hosting.SignalR&version=2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MeshWeaver.Hosting.SignalR
Overview
MeshWeaver.Hosting.SignalR provides hosting capabilities for SignalR-based mesh connections. It enables ASP.NET Core applications to host mesh nodes that can be accessed by external clients through SignalR.
Host Configuration
// In Program.cs or Startup.cs
public static void Configure(IApplicationBuilder app)
{
// Map SignalR hubs for mesh communication
app.MapMeshWeaverSignalRHubs();
}
Features
- Application hosting for SignalR
- Configuration management
- Service discovery
- Environment setup
- Dependency resolution
- Lifecycle management
- Diagnostics and monitoring
Usage Example
From SignalRMeshTest.cs
:
// Create and configure services
var services = CreateServiceCollection();
var serviceProvider = services.CreateMeshWeaverServiceProvider();
// Create a client hub that connects through SignalR
using var client = serviceProvider.CreateMessageHub(
new SignalRAddress(),
config => config.UseSignalRClient(SignalRUrl)
);
// Get the host's address and send a request
var address = Host.Services.GetRequiredService<IMessageHub>().Address;
var response = await client.AwaitResponse(
new PingRequest(),
o => o.WithTarget(address)
);
Hosting Options
- Application environment configuration
- Service discovery settings
- Dependency injection setup
- Logging and monitoring
- Runtime settings
Integration
- Works with MeshWeaver.Connection.SignalR for client connections
- Integrates with ASP.NET Core hosting
- Enables external mesh access through SignalR transport
Related Projects
- MeshWeaver.Hosting - Core hosting functionality
- MeshWeaver.Messaging.Hub - Messaging integration
See Also
Refer to the main MeshWeaver documentation for more information about mesh hosting options.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- DocumentFormat.OpenXml (>= 3.3.0)
- MeshWeaver.Kernel (>= 2.1.0)
- MeshWeaver.Layout (>= 2.1.0)
- MeshWeaver.Mesh.Contract (>= 2.1.0)
- Microsoft.Extensions.Caching.Memory (>= 9.0.3)
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 |
---|---|---|
2.1.0 | 151 | 10 days ago |
2.0.3 | 473 | 23 days ago |
2.0.2 | 439 | 23 days ago |
2.0.1 | 101 | a month ago |
2.0.0 | 138 | a month ago |
2.0.0-preview3 | 77 | 2 months ago |
2.0.0-Preview2 | 78 | 2 months ago |
2.0.0-preview1 | 90 | 3 months ago |