31 references to Current
System.Workflow.ComponentModel (31)
AuthoringOM\Compiler\Validation\ActivityValidator.cs (1)
55System.Diagnostics.Debug.Assert(manager.Context.Current == activity, "Unwinding contextStack: the item that is about to be popped is not the one we pushed.");
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (2)
141System.Diagnostics.Debug.Assert(manager.Context.Current == childContext, "Unwinding contextStack: the item that is about to be popped is not the one we pushed."); 169System.Diagnostics.Debug.Assert(manager.Context.Current == propertyValidationContext, "Unwinding contextStack: the item that is about to be popped is not the one we pushed.");
AuthoringOM\Compiler\Validation\Validator.cs (2)
127System.Diagnostics.Debug.Assert(manager.Context.Current == childContext, "Unwinding contextStack: the item that is about to be popped is not the one we pushed."); 135System.Diagnostics.Debug.Assert(manager.Context.Current == propertyValidationContext, "Unwinding contextStack: the item that is about to be popped is not the one we pushed.");
AuthoringOM\Design\ComponentSerializationService.cs (3)
206xomlSerializationManager.Context.Current is Activity 208WorkflowMarkupSerializationHelpers.ProcessDefTag(xomlSerializationManager, eventArgs.XmlReader, xomlSerializationManager.Context.Current as Activity, true, string.Empty); 258System.Diagnostics.Debug.Assert(obj == xomlSerializationManager.Context.Current, "Serialization Store did not remove object which it pushed onto the stack.");
AuthoringOM\Serializer\ExtendedPropertyInfo.cs (1)
194object extendee = manager.Context.Current;
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (1)
163Debug.Assert((PropertyInfo)serializationManager.Context.Current == serializableProperty, "Serializer did not remove an object it pushed into stack.");
AuthoringOM\Serializer\PropertySegmentSerializer.cs (1)
35return Activator.CreateInstance(type, new object[] { serializationManager as IServiceProvider, serializationManager.Context.Current });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (20)
84WorkflowMarkupSerializationHelpers.ProcessDefTag(markupSerializationManager, eventArgs.XmlReader, markupSerializationManager.Context.Current as Activity, false, fileName); 252Debug.Assert(serializationManager.Context.Current == obj, "Serializer did not remove an object it pushed into stack."); 358Debug.Assert(serializationManager.Context.Current == dependencyProperty, "Serializer did not remove an object it pushed into stack."); 374Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack."); 390Debug.Assert((EventInfo)serializationManager.Context.Current == evt, "Serializer did not remove an object it pushed into stack."); 479Debug.Assert(serializationManager.Context.Current == dependencyProperty, "Serializer did not remove an object it pushed into stack."); 493Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack."); 577Debug.Assert(serializationManager.Context.Current == obj, "Serializer did not remove an object it pushed into stack."); 937Debug.Assert(serializationManager.Context.Current == propertyObj, "Serializer did not remove an object it pushed into stack."); 1154PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 1799DependencyProperty dependencyProperty = serializationManager.Context.Current as DependencyProperty; 1800PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 1913DependencyProperty dependencyProperty = serializationManager.Context.Current as DependencyProperty; 1914PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 1944EventInfo evt = serializationManager.Context.Current as EventInfo; 1945DependencyProperty dependencyEvent = serializationManager.Context.Current as DependencyProperty; 1976DependencyProperty dependencyProperty = serializationManager.Context.Current as DependencyProperty; 1991EventInfo evt = serializationManager.Context.Current as EventInfo; 2007PropertyInfo property = serializationManager.Context.Current as PropertyInfo; 2642Debug.Assert((PropertyInfo)serializationManager.Context.Current == property, "Serializer did not remove an object it pushed into stack.");