https://github.com/vany0114/signalr-core-sqltabledependency
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
https://github.com/vany0114/signalr-core-sqltabledependency
asp-net-core asp-net-core-sockets aspnetcore entity-framework entityframeworkcore netcore netcore-2 netcore2 signalr signalr-client signalr-core signalrcore sockets sqltabledependency visual-studio-2017
Last synced: about 2 months ago
JSON representation
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
- Host: GitHub
- URL: https://github.com/vany0114/signalr-core-sqltabledependency
- Owner: vany0114
- License: mit
- Created: 2017-05-25T01:33:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T05:03:09.000Z (almost 6 years ago)
- Last Synced: 2025-04-19T21:45:06.833Z (6 months ago)
- Topics: asp-net-core, asp-net-core-sockets, aspnetcore, entity-framework, entityframeworkcore, netcore, netcore-2, netcore2, signalr, signalr-client, signalr-core, signalrcore, sockets, sqltabledependency, visual-studio-2017
- Language: C#
- Homepage: http://elvanydev.com
- Size: 3.08 MB
- Stars: 37
- Watchers: 8
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SignalR Core and SqlTableDependency
Is very early to talk about [SignalR Core](https://github.com/aspnet/SignalR) but it's exciting too. With the recent releasing of .netcore 2.0 the last [Microsoft Build](https://build.microsoft.com/) we can test a lot of great improvements and new features, between of them, the new SignalR Core. (Or at least the aproximation of what the SignalR team wants to build.) I have to warning that SignalR Core is on development process right now (as a matter of fact, while I was doing this demo I faced some issues because of the constant upgrades of SignalR team), so a bunch of things could change, but in some months (6 months at least) we can compare the progress and we could have a stable version of SignalR Core, meanwhile we can enjoy of this "version".
## Prerequisites and Installation Requirements
+ [.NET Core 2.0.0 Preview 1](https://www.microsoft.com/net/core/preview#windowscmd)
+ Visual Studio 2017 [Preview version 15.3](https://www.visualstudio.com/vs/preview/)## Instructions
1. Clone this repository.
2. Compile it.
3. In order to use the SQL Broker, you must be sure to enable Service Broker for the database. You can use the following command: `ALTER DATABASE MyDatabase SET ENABLE_BROKER`
4. Create Products table:
```sql
CREATE TABLE [dbo].[Products](
[Name] [varchar](200) NOT NULL,
[Quantity] [int] NOT NULL,
CONSTRAINT [PK_Products] PRIMARY KEY CLUSTERED
(
[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]GO
```
5. Execute the SignalRCore.Web project.
6. Execute the SignalRCore.CommandLine project. You can use `dotnet run` command.## Support
If you find this project helpful you can [support me](http://www.paypal.me/vany0114/3)!Visit my blog to view the whole post about SignalR Core.