c# - SingalR2 / WCF Service to run continuously windows service -
please me take critical design decision. looks wide discussion basic question developer or designer know can create singalr windows service , how. there no discussed , documented or mentioned whether singalr can used in below scenario. hope question not me loads of developers , designers.
in singnalr , how can create service , runs continuously market prices fix connection, when ever client connect updates prices client changes. number of clients can connect service.
so how can create singalr windows service running continuously , updates clients seamlessly parallel
ui in wpf , asp.net mvc web , html5 mobile
for singnalr2 best 1 or wcf best option
thanks, ineffablep
for can use hubs , signalr windows service http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server
in onconnected()
event, happens when client logged in singnalr server, notify client connected on change of stock price
public override task onconnected() { // stock price // update client on new stocks clients.all.updatestocks(); }
and clients need implement updatestocks(), see here how create client http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-net-client
Comments
Post a Comment