Exemplo n.º 1
0
 public Result <string> TryEmit(string id, object query)
 {
     lock (_context)
     {
         return(_context.TryGetEmiter(id, _context.CurrentNs)
                .OnSuccess(emiter => emiter.TryEmit(new OneCallContext(_context, query))));
     }
 }
Exemplo n.º 2
0
 public Result <string> TryEmit(string id, object query)
 {
     return(_context.TryGetEmiter(id, _context.CurrentNs)
            .OnSuccess(emiter => emiter.TryEmit(query, _context)));
 }