ABP实时通知系统后台作业

时间:2018-12-11 14:15:31

标签: c# redis notifications signalr aspnetboilerplate

如何使用后台作业让在线用户在服务器端仅向在线用户发送通知?

后台工作:

GroupBox

我的工作位于一个没有用户信息的 session 的API上,因此我想让所有在线用户仅向他们发布通知,然后调用我的工作进行通知他们。

  1. 默认情况下,模块零是否使用Redis? 如Alper所说的“不”。
  2. 我也需要通过API连接到SignalR吗? IsVisible添加到我的WebApi <ComboBox ItemsSource="{Binding PackageTypes}" SelectedItem="{Binding SelectedType}" /> <GroupBox /><!--Change content of this based on combobox's selection--> public class MainViewModel : ViewModelBase { private PackageModel_selectedPackageModel; public PackageModel SelectedPackageModel { get => _selectedPackageModel; set { _selectedPackageModel = value; } } public ObservableCollection<int> PackageTypes { get; set; } public int SelectedType { get; set; } public MainViewModel() { PackageTypes = new ObservableCollection<int>() { 1, 2, 3, 4 }; } } 似乎可以正常工作,但有时却不能,我缺少了一些东西
  3. 如何通过Web api(服务器端)获得在线用户? 我发现的另一种方法是获取所有订阅(import re str = 'Explorer II Ref.16570 Box' m = re.match('Ref\.[0-9]+', str) if m: print(m.group(0)[4:]) ),并在其中使用userId发送通知。 var onlineClients = _onlineClients.GetAllClients();返回null

谢谢

0 个答案:

没有答案
相关问题