コード例 #1
0
ファイル: ValidationRoot.cs プロジェクト: dox0/DotNet471RS3
        public Activity Resolve(string id)
        {
            Fx.Assert(id != null, "id should not be null.");

            Activity activityRoot = null;

            if (this.workflowService != null)
            {
                activityRoot = this.workflowService.GetWorkflowRoot();
            }
            else
            {
                activityRoot = this.activity;
            }

            return(ActivityValidationServices.Resolve(activityRoot, id));
        }