public override Task OnConnectedAsync() { var Userid = IRO_UNMO.Web.Helper.Autentifikacija.GetLoggedUser(Context.GetHttpContext()).Id; var ConnectionId = Context.ConnectionId; var x = _user.updateUser(Userid, ConnectionId).Result; if (x == true) { return(base.OnConnectedAsync()); } return(null); }
public override Task OnConnectedAsync() { var Userid = Context.UserIdentifier; //var y = Context.User; var ConnectionId = Context.ConnectionId; var x = _user.updateUser(Userid, ConnectionId).Result; if (x == true) { return(base.OnConnectedAsync()); } return(null); }
public override Task OnConnectedAsync() { var Userid = Autentifikacija.GetLogiraniKorisnik(Context.GetHttpContext()).OsobaID; //var y = Context.User; var ConnectionId = Context.ConnectionId; var x = _user.updateUser(Userid, ConnectionId).Result; if (x == true) { return(base.OnConnectedAsync()); } return(null); }