Method | Description | |
---|---|---|
AddMetadataConstraint ( string name, Func getConstraintValueFromPartType ) : |
Add an import constraint
|
|
AddMetadataConstraint ( string name, object value ) : |
Add an import constraint
|
|
AllowDefault ( ) : |
Allow the import to receive the default value for its type if the contract cannot be supplied by another part.
|
|
AsContractName ( Func getContractNameFromPartType ) : |
Specify the contract name for the export.
|
|
AsContractName ( string contractName ) : |
Specify the contract name for the import.
|
|
AsMany ( ) : |
Configure the import to receive all exports of the contract.
|
|
AsMany ( bool isMany ) : |
Configure the import to receive all exports of the contract.
|
Method | Description | |
---|---|---|
BuildAttributes ( Type type, List &attributes ) : void | ||
ImportConventionBuilder ( ) : System.Collections.Generic | ||
IsSupportedImportManyType ( TypeInfo typeInfo ) : bool |
public AddMetadataConstraint ( string name, Func getConstraintValueFromPartType ) : |
||
name | string | The name of the constraint item. |
getConstraintValueFromPartType | Func | A function that calculates the value to match. |
return |
public AddMetadataConstraint ( string name, object value ) : |
||
name | string | The name of the constraint item. |
value | object | The value to match. |
return |
public AllowDefault ( ) : |
||
return |
public AsContractName ( Func getContractNameFromPartType ) : |
||
getContractNameFromPartType | Func | A Func to retrieve the contract name from the part typeThe contract name. |
return |
public AsContractName ( string contractName ) : |
||
contractName | string | |
return |
public AsMany ( bool isMany ) : |
||
isMany | bool | True if the import receives all values; otherwise false. |
return |