c# - Can a UWP app act as a SignalR server? -


i saw code sample makes wpf app signalr server: https://code.msdn.microsoft.com/using-signalr-in-winforms-f1ec847b

can make uwp app signalr server? other clients can connect running uwp app on device?

i tried installing signalr nuget on uwp app, got error:

install-package : microsoft.aspnet.signalr.core 2.2.1 not compatible uap,version=v10.0.   @ line:1 char:1 + install-package microsoft.aspnet.signalr.selfhost + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : notspecified: (:) [install-package], exception     + fullyqualifiederrorid : nugetcmdletunhandledexception,nuget.packagemanagement.powershellcmdlets.installpackagecommand 

i thinking running signalr server service , connecting uwp app , connecting other clients service. work?

signalr uses server apis not available on uwp, doubt work, despite have not looked in more detail.

but in general not idea anyway way uwp apps work. example, suspended when not in foreground, should never happen server. can not rely on available permanently. there specific reason considered uwp app doing this?

so approach using (windows?) service host signalr , connecting uwp app (and possible other uwp apps) better , in fact correct approach. option host web application in iis or web server prefer instead of windows service, handling bit easier self-host web service inside windows service.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -