locked
Call Signalr method when there is any change in database table RRS feed

  • Question

  • User-1312711188 posted

    Hi,

    I have created a signalr 1.x application using web forms. I want to call signalr methods when there is any change in db table.

    Thanks

    Thursday, November 17, 2016 10:03 AM

All replies

  • User283571144 posted

    Hi Vishul,

    Vishul

    I have created a signalr 1.x application using web forms. I want to call signalr methods when there is any change in db table.

    According to your description, do you mean you want to know how to achieve calling signalr methods when there is any change in db table?

    If this is your requirement, I suggest you could write a signalr hub method to search the database.

    Then in the html page, you could create a function that the hub can call to broadcast messages when the database changed.

    More details, you could refer to follow link:

    https://code.msdn.microsoft.com/Broadcast-Real-time-SQL-69dd9fcc#content

    Besides, I suggest you could install the newest SignalR versio 2.2.1, it you could be installed by Nuget Package Manager.

    I think it is better than 1.x.

    Best Regards,

    Brando

    Friday, November 18, 2016 9:02 AM