public static async Task SendInfoResult(this HubConnection hubConnection,
                                         MediaInfoViewModel mediaInfo, CancellationToken token = default)
 {
     await hubConnection.InvokeCoreAsync(Constants.HubMethodNames.Info, new object[]
     {
         mediaInfo
     }, token);
 }
示例#2
0
 public async Task Info(MediaInfoViewModel mediaInfo)
 {
     await Clients.Others.SendAsync(Constants.HubMethodNames.Info, mediaInfo);
 }
示例#3
0
 public static async Task SendInfoResult <THub>(this IHubContext <THub> hubContext,
                                                MediaInfoViewModel mediaInfo, CancellationToken token = default) where THub : Hub
 {
     await hubContext.Clients.All.SendAsync(Constants.HubMethodNames.Info, mediaInfo, token);
 }