Class ContextFactory
A context factory.
Inheritance
System.Object
ContextFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Services
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class ContextFactory : IContextFactory
Constructors
| Improve this Doc View SourceContextFactory(ICompositionContext, IAmbientServices)
Initializes a new instance of the ContextFactory class.
Declaration
public ContextFactory(ICompositionContext compositionContext, IAmbientServices ambientServices)
Parameters
| Type | Name | Description |
|---|---|---|
| ICompositionContext | compositionContext | Context for the composition. |
| IAmbientServices | ambientServices | The ambient services. |
Methods
| Improve this Doc View SourceCreateContext<TContext>(Object[])
Creates a typed context.
Declaration
public TContext CreateContext<TContext>(params object[] args)
where TContext : IContext
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object[] | args | A variable-length parameters list containing arguments. |
Returns
| Type | Description |
|---|---|
| TContext | The new context. |
Type Parameters
| Name | Description |
|---|---|
| TContext | Type of the context. |