Method GetOptionalComponents
GetOptionalComponents(BuildContext)
Get all optional components from BuildConfiguration. Optional component types not found in BuildConfiguration will be set to a new instance of that type.
Declaration
public IEnumerable<IBuildComponent> GetOptionalComponents(BuildContext context)
Parameters
| Type | Name | Description | 
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep.  | 
    
Returns
| Type | Description | 
|---|---|
| IEnumerable<IBuildComponent> | List of optional components.  | 
    
GetOptionalComponents(BuildContext, Type)
Get all optional components from BuildConfiguration, that matches Type. Optional component types not found in BuildConfiguration will be set to a new instance of that type.
Declaration
public IEnumerable<IBuildComponent> GetOptionalComponents(BuildContext context, Type type)
Parameters
| Type | Name | Description | 
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep.  | 
    
| Type | type | Type of the components.  | 
    
Returns
| Type | Description | 
|---|---|
| IEnumerable<IBuildComponent> | List of optional components.  | 
    
GetOptionalComponents<T>(BuildContext)
Get all optional components from BuildConfiguration, that matches T.
Optional component types not found in BuildConfiguration will be set to a new instance of that type.
Declaration
public IEnumerable<T> GetOptionalComponents<T>(BuildContext context)
Parameters
| Type | Name | Description | 
|---|---|---|
| BuildContext | context | The BuildContext used by the execution of this BuildStep.  | 
    
Returns
| Type | Description | 
|---|---|
| IEnumerable<T> | List of optional components.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | Type of the components.  |