示例#1
0
        public static IFactoryDependencyHandler GetDefaultDependencyHandler <TArg1, TInstance>()
        {
            var target =
                new NewInstanceDependencyTarget(
                    targetType: typeof(TInstance),
                    constructorSignature: new TypeNameReference[] { typeof(TArg1) },
                    isReadOnly: true);

            target.Validate();
            return(GetDefaultDependencyHandler(target: target));
        }
示例#2
0
 protected virtual void CreateReadOnlyCopy(out NewInstanceDependencyTarget readOnlyCopy)
 => readOnlyCopy = new NewInstanceDependencyTarget(other: this, isReadOnly: true);