public async Task Process(ClientMethodInvoke invoke) { var sortedProcesses = Processes .Where(x => x.ShouldProcess(invoke)) .OrderBy(x => x.ProcessOrder) .ToList(); foreach (var sortedProcess in sortedProcesses) { try { await sortedProcess.ProcessAsync(invoke).ConfigureAwait(false); } catch (Exception e) { //todo log Console.WriteLine(e); throw; } } }
public ClientMethodInvokeEvent(HubContextWrapper context, ClientMethodInvoke args) : base(context, args.ScopeId) { Args = args; }
public ClientMethodInvokeEvent(Hub raiseHub, ClientMethodInvoke args) : base(raiseHub, args.ScopeId) { Args = args; }