SignalR.Orleans
1.0.0-preview-44
See the version list below for details.
dotnet add package SignalR.Orleans --version 1.0.0-preview-44
NuGet\Install-Package SignalR.Orleans -Version 1.0.0-preview-44
<PackageReference Include="SignalR.Orleans" Version="1.0.0-preview-44" />
paket add SignalR.Orleans --version 1.0.0-preview-44
#r "nuget: SignalR.Orleans, 1.0.0-preview-44"
// Install SignalR.Orleans as a Cake Addin #addin nuget:?package=SignalR.Orleans&version=1.0.0-preview-44&prerelease // Install SignalR.Orleans as a Cake Tool #tool nuget:?package=SignalR.Orleans&version=1.0.0-preview-44&prerelease
Configuration
Silo
We need to configure the Orleans Silo with the below:
- Use
.UseSignalR()
onISiloHostBuilder
.
Example
var silo = new SiloHostBuilder()
.UseSignalR()
.Build();
await silo.StartAsync();
Client
Now your SignalR application needs to connect to the Orleans Cluster by using an Orleans Client:
- Use
.UseSignalR()
onIClientBuilder
.
Example
var client = new ClientBuilder()
.UseSignalR()
.Build();
await client.Connect();
Somewhere in your Startup.cs
:
- Use
.UseOrleans()
onISignalRBuilder
.
Example
public void ConfigureServices(IServiceCollection services)
{
...
services.AddSignalR()
.UseOrleans();
...
}
Great! Now you have SignalR configured and Orleans SignalR backplane built in Orleans!
Features
Hub Context
HubContext
gives you the ability to communicate with the client from orleans grains (outside the hub).
Sample usage: Receiving server push notifications from message brokers, web hooks, etc. Ideally first update your grain state and then push signalr message to the client.
Example:
public class UserNotificationGrain : Grain<UserNotificationState>, IUserNotificationGrain
{
private HubContext<IUserNotificationHub> _hubContext;
public override async Task OnActivateAsync()
{
_hubContext = GrainFactory.GetHub<IUserNotificationHub>();
// some code...
await _hubContext.User(this.GetPrimaryKeyString()).SendSignalRMessage("Broadcast", State.UserNotification);
}
}
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- Microsoft.AspNetCore.SignalR.Core (>= 1.0.0-alpha2-final)
- Microsoft.Orleans.Core (>= 2.0.0-rc2)
- Microsoft.Orleans.OrleansCodeGenerator.Build (>= 2.0.0-rc2)
- Microsoft.Orleans.OrleansProviders (>= 2.0.0-rc2)
- Microsoft.Orleans.OrleansRuntime (>= 2.0.0-rc2)
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 |
---|---|---|
7.2.0 | 11,316 | 8/28/2023 |
7.1.0 | 9,296 | 2/15/2023 |
7.0.1 | 836 | 2/14/2023 |
2.2.1 | 6,646 | 1/19/2023 |
2.2.0 | 10,762 | 8/8/2022 |
2.1.0 | 21,135 | 10/5/2021 |
2.0.1 | 6,529 | 2/15/2021 |
1.5.0 | 23,751 | 11/1/2019 |
1.4.4 | 13,866 | 11/1/2019 |
1.4.3 | 7,511 | 9/23/2019 |
1.4.2 | 2,899 | 9/8/2019 |
1.4.0 | 4,011 | 7/8/2019 |
1.3.2 | 3,644 | 6/13/2019 |
1.3.1 | 1,630 | 6/10/2019 |
1.2.0 | 3,044 | 3/21/2019 |
1.1.2 | 1,464 | 2/25/2019 |
1.1.1 | 1,893 | 1/24/2019 |
1.0.6 | 3,903 | 10/12/2018 |
1.0.5 | 2,150 | 7/24/2018 |
1.0.4 | 1,514 | 7/24/2018 |
1.0.3 | 1,520 | 7/4/2018 |
1.0.2 | 1,674 | 7/4/2018 |
1.0.1 | 1,707 | 6/23/2018 |
1.0.0-preview-65 | 1,725 | 5/31/2018 |
1.0.0-preview-63 | 1,555 | 5/8/2018 |
1.0.0-preview-60 | 1,464 | 4/25/2018 |
1.0.0-preview-58 | 1,397 | 4/24/2018 |
1.0.0-preview-52 | 1,561 | 3/28/2018 |
1.0.0-preview-50 | 1,725 | 3/28/2018 |
1.0.0-preview-47 | 1,515 | 3/16/2018 |
1.0.0-preview-44 | 1,509 | 3/13/2018 |
1.0.0-preview-42 | 1,478 | 3/5/2018 |
1.0.0-preview-39 | 1,503 | 3/5/2018 |
1.0.0-preview-37 | 1,447 | 3/2/2018 |
1.0.0-preview-32 | 1,901 | 12/21/2017 |
1.0.0-preview-26 | 1,394 | 12/12/2017 |
1.0.0-preview-22 | 1,371 | 11/24/2017 |
1.0.0-preview-19 | 1,339 | 11/22/2017 |