2 writes to Current
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\XomlCompiler.cs (2)
270WorkflowCompilationContext.Current = new WorkflowCompilationContext(this); 296WorkflowCompilationContext.Current = this.currentContext;
20 references to Current
System.Workflow.Activities (6)
Rules\DeclarativeExpressionConditionDeclaration.cs (2)
393IDisposable localContextScope = (WorkflowCompilationContext.Current == null ? WorkflowCompilationContext.CreateScope(manager) : null); 396RuleValidation ruleValidator = new RuleValidation(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
Rules\RuleSetReference.cs (2)
148IDisposable localContextScope = (WorkflowCompilationContext.Current == null ? WorkflowCompilationContext.CreateScope(manager) : null); 152RuleValidation validation = new RuleValidation(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
Rules\RuleValidation.cs (2)
942Debug.Assert(WorkflowCompilationContext.Current != null, "Can't have checkTypes set to true without a context in scope"); 943this.authorizedTypes = WorkflowCompilationContext.Current.GetAuthorizedTypes();
System.Workflow.ComponentModel (14)
AuthoringOM\Bind.cs (2)
260Debug.Assert(WorkflowCompilationContext.Current != null, "Can't have checkTypes set to true without a context in scope"); 261IList<AuthorizedType> authorizedTypes = WorkflowCompilationContext.Current.GetAuthorizedTypes();
AuthoringOM\Compiler\Validation\BindValidator.cs (4)
152IDisposable localContextScope = (WorkflowCompilationContext.Current == null ? WorkflowCompilationContext.CreateScope(manager) : null); 155if (WorkflowCompilationContext.Current.CheckTypes) 349IDisposable localContextScope = (WorkflowCompilationContext.Current == null ? WorkflowCompilationContext.CreateScope(manager) : null); 352if (WorkflowCompilationContext.Current.CheckTypes)
AuthoringOM\Compiler\XomlCompiler.cs (2)
269this.currentContext = WorkflowCompilationContext.Current; 1017WorkflowCompilationContext context = WorkflowCompilationContext.Current;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (6)
62authorizedTypes = WorkflowCompilationContext.Current.GetAuthorizedTypes(); 71ITypeProvider typeProvider = WorkflowCompilationContext.Current.ServiceProvider.GetService(typeof(ITypeProvider)) as ITypeProvider; 155DesignerSerializationManager manager = new DesignerSerializationManager(WorkflowCompilationContext.Current.ServiceProvider); 204WorkflowCompilationContext context = WorkflowCompilationContext.Current; 215CodeGenerationManager codeGenerationManager = new CodeGenerationManager(WorkflowCompilationContext.Current.ServiceProvider); 666ValidationManager validationManager = new ValidationManager(WorkflowCompilationContext.Current.ServiceProvider);