コード例 #1
0
        public void EndFindPartialMatch(Guid sessionId, IPattern matchedPattern)
        {
            var session = SessionStore.Deafult[sessionId];
            MatcherServiceClient client = new MatcherServiceClient(session.Url);

            client.DonePartialMatch(sessionId, matchedPattern);

            SessionStore.Deafult.DeleteSession(sessionId);
        }
コード例 #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);
        }
コード例 #3
0
        public INode GetNode(IId partitionId, IId nodeId)
        {
            // try to lookup the node in this module (this should be O(1))
            var node = MatcherModule.Instance.GetNode(nodeId);

            if (node != null)
            {
                return(node);
            }

            MatcherInfo          matcher = FindMatcher(partitionId);
            MatcherServiceClient client  = new MatcherServiceClient(matcher.Url);

            return(client.GetNode(nodeId));
        }