public ImportDefinition AddImport(string contractName, ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite)
        {
            var import = ImportDefinitionFactory.CreateDefault(contractName, cardinality, isRecomposable, isPrerequisite);

            this.AddImport(import);
            return(import);
        }
Example #2
0
        private static ImportDefinition ImportFromContract(string contractName)
        {
            return(ImportDefinitionFactory.CreateDefault(contractName,

                                                         ImportCardinality.ZeroOrMore,
                                                         false,
                                                         false));
        }