У меня есть серверный класс, в котором я вызываю метод в концентраторе «ReceiveChanges»:
Код: Выделить всё
LegacyHubContext.Clients.All.ReceiveChanges(name, args);
Код: Выделить всё
HubContext.Clients.All.SendAsync(methodName, name, args);
Код: Выделить всё
MethodInfo method = HubContextLegacy.Clients.GetType().GetMethod("All." + methodName);
method?.Invoke(HubContextLegacy.Clients, new object[] {name, args});
Код: Выделить всё
methodЛюбая помощь будет оценена по достоинству.
Подробнее здесь: https://stackoverflow.com/questions/792 ... th-c-sharp
Мобильная версия