public void ReleasePartialMatchNode(Guid id, IPattern pattern) { PartialMatchResult res = null; results.TryRemove(id, out res); res.MatchedPattern = pattern; res.Release(); }
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); }