Exemplo n.º 1
0
        public void ReleasePartialMatchNode(Guid id, IPattern pattern)
        {
            PartialMatchResult res = null;

            results.TryRemove(id, out res);
            res.MatchedPattern = pattern;
            res.Release();
        }
Exemplo n.º 2
0
        public IPartialMatchResult BeginFindPartialMatch(IId partitionId, IPattern pattern)
        {
            var matcher = FindMatcher(partitionId);
            MatcherServiceClient client = new MatcherServiceClient(matcher.Url);

            var res = new PartialMatchResult();

            results.TryAdd(res.Id, res);

            client.FindPartialMatch(res.Id, pattern);

            return(res);
        }