Exemplo n.º 1
0
 public bool TryCreateWatch(string path, RangeInt cursor, out IWatch watch)
 {
     if (WatchContext.TryParseDeepest(this, path, ref cursor, out var ctrxResult))
     {
         return(ctrxResult.TryCreateWatch(out watch));
     }
     watch = null;
     return(false);
 }
Exemplo n.º 2
0
            bool TryCreateWatch(out IWatch watch)
            {
                var pathRange = Path.Range();

                if (WatchContext.TryParseDeepest(Context, Path, ref pathRange, out var lastCtx))
                {
                    return(lastCtx.TryCreateWatch(out watch));
                }
                watch = default;
                return(false);
                //return WatchContext.TryCreateWatch(Context, Path, Path.Range(), out watch);
            }