public void UnregisterContextActivity(System.Workflow.ComponentModel.Activity activity)
        {
            int key = ContextId(activity);

            this.contextActivityMap.Remove(key);
            activity.OnActivityExecutionContextUnload(this);
        }
 internal void UnregisterDynamicActivity(Activity dynamicActivity)
 {
     int key = ContextActivityUtils.ContextId(dynamicActivity);
     this.subStateMap.Remove(key);
     WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0, "Removing context {0}:{1}", new object[] { key, dynamicActivity.QualifiedName });
     dynamicActivity.OnActivityExecutionContextUnload(this);
 }
 public void UnregisterContextActivity(Activity activity)
 {
     int contextId = ContextId(activity);
     this.contextActivityMap.Remove(contextId);
     activity.OnActivityExecutionContextUnload(this);
 }