Show / Hide Table of Contents

Class ContextFactory

A helper class for generating binding contexts.

Inheritance
System.Object
ContextFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharp.Entities.DependencyInjection
Assembly: SpiceSharp.dll
Syntax
public static class ContextFactory

Methods

Get<TContext>(ISimulation, IEntity, IBehaviorContainer)

Gets a binding context of the specified type.

Declaration
public static TContext Get<TContext>(ISimulation simulation, IEntity entity, IBehaviorContainer container)
    where TContext : IBindingContext
Parameters
Type Name Description
ISimulation simulation

The simulation.

IEntity entity

The entity.

IBehaviorContainer container

The container.

Returns
Type Description
TContext

The binding context.

Type Parameters
Name Description
TContext

The type of the context.

Back to top Generated by DocFX