public ProcessProxy GetContextProxy(Guid guid) { ProcessProxy proxy = null; Contexts.TryGetValue(guid, out proxy); return(proxy); }
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); }
//Invoked by client. public void FireContextCreated(ProcessProxy context) { ContextCreated(context); }