Example #1
0
        public ProcessSession GetContextSession(Guid guid)
        {
            ProcessSession session = null;

            Contexts.TryGetValue(guid, out session);
            return(session);
        }
Example #2
0
        public Guid Intern(Process process)
        {
            ProcessSession interned = null;

            if (!Contexts.TryGetValue(process.Guid, out interned))
            {
                interned = new ProcessSession(this, process, Callback, process.Guid);
                Contexts.Add(process.Guid, interned);
            }
            return(interned.Guid);
        }
Example #3
0
        //
        public List <string> GetClauses(Guid contextId)
        {
            ProcessSession session = GetContextSession(contextId);

            return(session.GetClauses(contextId));
        }