Пример #1
0
        /// <inheritdoc/>
        public IArgument[] CreateArgumentsForClassIfNotExists(Type underlyingComponentType)
        {
            var argFactory = new ArgumentFactory();

            return(argFactory.CreateArgumentsForClassIfNotExistsGeneric(underlyingComponentType,

                                                                        //tell it how to create new instances of us related to parent
                                                                        this,

                                                                        //what arguments already exist
                                                                        PipelineComponentArguments.ToArray())

                   //convert the result back from generic to specific (us)
                   .Cast <PipelineComponentArgument>().ToArray());
        }
Пример #2
0
 /// <inheritdoc/>
 public IHasDependencies[] GetObjectsDependingOnThis()
 {
     return(PipelineComponentArguments.Cast <IHasDependencies>().ToArray());
 }