コード例 #1
0
        public DeploymentDescriptor(ITypeInfo testClassType)
        {
            _testClassType = testClassType;

            var scopeAttr = testClassType.GetFirstCustomAttribute<NuwaWebDeploymentScopeAttribute>();
            if (scopeAttr != null)
            {
                this.DeploymentType = scopeAttr.DeploymentType;
                ScopePath = scopeAttr.ScopePath;
                ScopeResourceType = scopeAttr.ResourceType;
            }
        }
コード例 #2
0
        public DeploymentDescriptor(ITypeInfo testClassType)
        {
            _testClassType = testClassType;

            var scopeAttr = testClassType.GetFirstCustomAttribute <NuwaWebDeploymentScopeAttribute>();

            if (scopeAttr != null)
            {
                this.DeploymentType = scopeAttr.DeploymentType;
                ScopePath           = scopeAttr.ScopePath;
                ScopeResourceType   = scopeAttr.ResourceType;
            }
        }