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

            Contexts.TryGetValue(guid, out proxy);
            return(proxy);
        }
Beispiel #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);
        }
Beispiel #3
0
        //
        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);
        }
Beispiel #4
0
 //Invoked by client.
 public void FireContextCreated(ProcessProxy context)
 {
     ContextCreated(context);
 }