Ejemplo n.º 1
0
        public Scope(ILogProvider logProvider, Context context, ProcessStep currentStep)
            : this(logProvider)
        {
            Variables      = new Dictionary <string, object>();
            ReturnStepIds  = new Stack <Guid>();
            VisitedStepIds = new Stack <Guid>();

            ScopeId         = Guid.NewGuid();
            Context         = context;
            ScopeRunCounter = 0;
            CreateTime      = DateTimeOffset.Now;
            Status          = ProcessingStatus.Ready;
            StatusMessage   = "Ready.";
            CurrentStep     = currentStep;

            Context.Scopes.Add(this);
        }