Class BuildContext
Basic implementation of IBuildContext. Stores data generated during a build.
Inheritance
System.Object
BuildContext
Syntax
public class BuildContext : IBuildContext
Constructors
BuildContext()
Declaration
BuildContext(IContextObject[])
Default constructor, adds the passed in parameters to the context.
Declaration
public BuildContext(params IContextObject[] buildParams)
Parameters
Type |
Name |
Description |
IContextObject[] |
buildParams |
The set of initial parameters to add to the context.
|
Methods
ContainsContextObject(Type)
Declaration
public bool ContainsContextObject(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
ContainsContextObject<T>()
Declaration
public bool ContainsContextObject<T>()where T : IContextObject
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
GetContextObject(Type)
Declaration
public IContextObject GetContextObject(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
IContextObject |
|
GetContextObject<T>()
Declaration
public T GetContextObject<T>()where T : IContextObject
Returns
Type Parameters
SetContextObject(IContextObject)
Declaration
public void SetContextObject(IContextObject contextObject)
Parameters
Type |
Name |
Description |
IContextObject |
contextObject |
|
SetContextObject(Type, IContextObject)
Declaration
public void SetContextObject(Type type, IContextObject contextObject)
Parameters
Type |
Name |
Description |
Type |
type |
|
IContextObject |
contextObject |
|
SetContextObject<T>(IContextObject)
Declaration
public void SetContextObject<T>(IContextObject contextObject)where T : IContextObject
Parameters
Type |
Name |
Description |
IContextObject |
contextObject |
|
Type Parameters
TryGetContextObject(Type, out IContextObject)
Declaration
public bool TryGetContextObject(Type type, out IContextObject contextObject)
Parameters
Type |
Name |
Description |
Type |
type |
|
IContextObject |
contextObject |
|
Returns
Type |
Description |
System.Boolean |
|
TryGetContextObject<T>(out T)
Declaration
public bool TryGetContextObject<T>(out T contextObject)where T : IContextObject
Parameters
Type |
Name |
Description |
T |
contextObject |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters