Exemple #1
0
        public ProcessProxy GetContextProxy(Guid guid)
        {
            ProcessProxy proxy = null;

            Contexts.TryGetValue(guid, out proxy);
            return(proxy);
        }
Exemple #2
0
        public ProcessProxy InternContext(Guid contextGuid)
        {
            ProcessProxy interned = null;

            if (!Contexts.TryGetValue(contextGuid, out interned))
            {
                interned = new ProcessProxy(this, Channel, contextGuid);
                Contexts.Add(contextGuid, interned);
            }
            return(interned);
        }
        //
        public void OnContextCreated(Guid brainId, Guid contextId, Guid parentId, string label)
        {
            ProcessProxy context = InternContext(contextId);

            if (contextId != parentId)
            {
                context.Parent = GetContextProxy(parentId);
            }
            context.Label = label;
            //
            BrainProxy brain = GetBrainProxy(brainId);

            brain.FireContextCreated(context);
        }
Exemple #4
0
 //Invoked by client.
 public void FireContextCreated(ProcessProxy context)
 {
     ContextCreated(context);
 }