Nie wydaje mi się, aby SignalR 3 działał na aktualizację ASP .Net 5 RC-1 z Beta8. Wypróbowałem najnowszy pakiet RC1 dla SignalR, ale wystąpił następujący problem. Próbowałem pakiet "Microsoft.AspNet.SignalR.Server": "3.0.0-rc1-15810"
SignalR nie działa w ASP .Net 5 RC-1
services.AddSignalR();
powoduje następujący błąd:
The type 'IServiceCollection' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
i app.UseSignalR();
jest przyczyną tego jeden:
The type 'IApplicationBuilder' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.AspNet.Http.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Kiedy przejść do pakietu "Microsoft.AspNet.SignalR.Server": "3.0.0-rc2-15909"
Pojawia się błąd runtime:
An exception of type 'System.TypeLoadException' occurred in mscorlib.dll but was not handled in user code
Additional information: Could not load type 'Microsoft.AspNet.Http.RequestDelegate' from assembly 'Microsoft.AspNet.Http.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
SignalR nie jest obsługiwany przez Asp .Net 5 v1. – Tratcher
@ Tratcher co o [tym] (https://github.com/aspnet/SignalR-Server). Wygląda też na to, że [to] (https://github.com/aspnet/BugTracker) go używa. –
@Tratcher to zdecydowanie jest obsługiwane. Poniższe odpowiedzi zadziałały u mnie i używam go w wersji beta 8 przez ostatnie kilka tygodni. – Tjaart