public AttributedPartCreationInfo(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
 {
     Assumes.NotNull(type);
     this._type = type;
     this._ignoreConstructorImports = ignoreConstructorImports;
     this._partCreationPolicy = partCreationPolicy;
     this._origin = origin;
 }
Пример #2
0
        public static ReflectionComposablePartDefinition CreatePartDefinition(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
        {
            Assumes.NotNull(type);

            AttributedPartCreationInfo creationInfo = new AttributedPartCreationInfo(type, partCreationPolicy, ignoreConstructorImports, origin);

            return new ReflectionComposablePartDefinition(creationInfo);
        }
Пример #3
0
 public AttributedPartCreationInfo(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
 {
     Assumes.NotNull(type);
     this._type = type;
     this._ignoreConstructorImports = ignoreConstructorImports;
     this._partCreationPolicy       = partCreationPolicy;
     this._origin = origin;
 }
Пример #4
0
        public AttributedPartCreationInfo(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            _type = type;
            _ignoreConstructorImports = ignoreConstructorImports;
            _partCreationPolicy       = partCreationPolicy;
            _origin = origin;
        }
Пример #5
0
        public static ReflectionComposablePartDefinition CreatePartDefinition(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
        {
            Assumes.NotNull(type);

            AttributedPartCreationInfo creationInfo = new AttributedPartCreationInfo(type, partCreationPolicy, ignoreConstructorImports, origin);

            return(new ReflectionComposablePartDefinition(creationInfo));
        }
        public static ReflectionComposablePartDefinition CreatePartDefinition(Type type, PartCreationPolicyAttribute partCreationPolicy, bool ignoreConstructorImports, ICompositionElement origin)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            AttributedPartCreationInfo creationInfo = new AttributedPartCreationInfo(type, partCreationPolicy, ignoreConstructorImports, origin);

            return(new ReflectionComposablePartDefinition(creationInfo));
        }