Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UnfoldScope"/> class.
        /// </summary>
        public UnfoldScope(IAutomationExtension <IAutomationSettings> originatingAutomation, ReferenceTag artifactReferenceTag, string templateUri)
        {
            Guard.NotNull(() => originatingAutomation, originatingAutomation);
            Guard.NotNull(() => artifactReferenceTag, artifactReferenceTag);
            Guard.NotNullOrEmpty(() => templateUri, templateUri);

            this.parentScope = scopes.Peek();

            scopes.Push(this);
            this.templateUri  = templateUri;
            this.Automation   = originatingAutomation;
            this.ReferenceTag = artifactReferenceTag;
            tracer.Verbose(Resources.UnfoldScope_Initialized, templateUri);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UnfoldScope"/> class.
        /// </summary>
        public UnfoldScope(IAutomationExtension<IAutomationSettings> originatingAutomation, ReferenceTag artifactReferenceTag, string templateUri)
        {
            Guard.NotNull(() => originatingAutomation, originatingAutomation);
            Guard.NotNull(() => artifactReferenceTag, artifactReferenceTag);
            Guard.NotNullOrEmpty(() => templateUri, templateUri);

            this.parentScope = scopes.Peek();

            scopes.Push(this);
            this.templateUri = templateUri;
            this.Automation = originatingAutomation;
            this.ReferenceTag = artifactReferenceTag;
            tracer.Verbose(Resources.UnfoldScope_Initialized, templateUri);
        }