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;
                }
            }
        }
Ejemplo n.º 2
0
 public ClientMethodInvokeEvent(HubContextWrapper context, ClientMethodInvoke args) : base(context, args.ScopeId)
 {
     Args = args;
 }
Ejemplo n.º 3
0
 public ClientMethodInvokeEvent(Hub raiseHub, ClientMethodInvoke args) : base(raiseHub, args.ScopeId)
 {
     Args = args;
 }