Class ContextHolder
Inheritance
ContextHolder
Implements
ITypeDescriptorContext
Assembly: Xareus.Scenarios.dll
Syntax
public class ContextHolder : ITypeDescriptorContext, IServiceProvider
Constructors
ContextHolder()
Declaration
ContextHolder(IContext, IContext, IContext, IContext, IContext)
Declaration
public ContextHolder(IContext externalContext, IContext scenarioContext = null, IContext sequenceContext = null, IContext eventContext = null, IContext configurationContext = null)
Parameters
Properties
ConfigurationContext
Declaration
public IContext ConfigurationContext { get; set; }
Property Value
Container
Declaration
public virtual IContainer Container { get; }
Property Value
Type |
Description |
IContainer |
An System.ComponentModel.IContainer with the set of objects for this TypeDescriptor; otherwise, null if there is no container or if the TypeDescriptor does not use outside objects.
|
EventContext
Declaration
public IContext EventContext { get; set; }
Property Value
ExternalContext
Declaration
public IContext ExternalContext { get; set; }
Property Value
Instance
Gets the object that is connected with this type descriptor request.
Declaration
public virtual object Instance { get; }
Property Value
Type |
Description |
object |
The object that invokes the method on the TypeDescriptor; otherwise, null if there is no object responsible for the call.
|
PropertyDescriptor
Gets the System.ComponentModel.PropertyDescriptor that is associated with the given context item.
Declaration
public virtual PropertyDescriptor PropertyDescriptor { get; }
Property Value
Type |
Description |
PropertyDescriptor |
The System.ComponentModel.PropertyDescriptor that describes the given context item; otherwise, null if there is no System.ComponentModel.PropertyDescriptor responsible for the call.
|
ScenarioContext
Declaration
public IContext ScenarioContext { get; set; }
Property Value
SequenceContext
Declaration
public IContext SequenceContext { get; set; }
Property Value
Methods
GetContext(ContextType)
Declaration
public IContext GetContext(ContextType contextType)
Parameters
Returns
GetService(Type)
Gets the service object of the specified type.
Declaration
public virtual object GetService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
An object that specifies the type of service object to get.
|
Returns
Type |
Description |
object |
A service object of type serviceType .
-or-
null if there is no service object of type serviceType .
|
OnComponentChanged()
Declaration
public virtual void OnComponentChanged()
OnComponentChanging()
Declaration
public virtual bool OnComponentChanging()
Returns
Type |
Description |
bool |
true if this object can be changed; otherwise, false.
|
Implements
System.ComponentModel.ITypeDescriptorContext