Table of Contents

Class ExecutionContext

Namespace
Ceres.Flow
Assembly
Ceres.Flow.dll

Flow graph execution context

public class ExecutionContext : IDisposable
Inheritance
ExecutionContext
Implements
Inherited Members

Constructors

ExecutionContext()

protected ExecutionContext()

Properties

Context

Execution source context object

public Object Context { get; }

Property Value

Object

CurrentInputPortId

public string CurrentInputPortId { get; }

Property Value

string

CurrentInputPortIndex

public int CurrentInputPortIndex { get; }

Property Value

int

Graph

Execution owner graph

public FlowGraph Graph { get; }

Property Value

FlowGraph

Methods

Dispose()

public void Dispose()

Forward(ExecutableNode)

Execute node in forward path

public UniTask Forward(ExecutableNode node)

Parameters

node ExecutableNode

Returns

UniTask

Forward(NodePort)

public UniTask Forward(NodePort port)

Parameters

port NodePort

Returns

UniTask

GetEvent()

Get source EventBase this execution fired from

public EventBase GetEvent()

Returns

EventBase

GetEventT<T>()

Get source EventBase this execution fired from with specific type check

public T GetEventT<T>() where T : EventBase<T>, new()

Returns

T

Type Parameters

T

GetPooled(Object, FlowGraph, EventBase)

public static ExecutionContext GetPooled(Object context, FlowGraph graph, EventBase evt = null)

Parameters

context Object
graph FlowGraph
evt EventBase

Returns

ExecutionContext

SetNext(ExecutableNode)

Set execution flow next node

public void SetNext(ExecutableNode node)

Parameters

node ExecutableNode

SetNext(NodePort)

public void SetNext(NodePort port)

Parameters

port NodePort