Show / Hide Table of Contents

Class ContextFactory

A context factory.

Inheritance
System.Object
ContextFactory
Implements
IContextFactory
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 Source

ContextFactory(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 Source

CreateContext<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.

Implements

IContextFactory

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
SerializationExtensions.CreateOrUpdateSerializationContext<TMediaType>(IContextFactory, ISerializationContext, Action<ISerializationContext>)
SerializationExtensions.CreateSerializationContext<TMediaType>(IContextFactory, Func<Object>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX