Table of Contents

Interface ISessionObjects

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

The object lifetime manager of an execution session: creates instances and tracks their roots and reference counts.

public interface ISessionObjects

Methods

AddRef(VBRuntimeObjectId, IBindingHandle)

Records a new reference (root) to an instance.

void AddRef(VBRuntimeObjectId instance, IBindingHandle handle)

Parameters

instance VBRuntimeObjectId
handle IBindingHandle

CreateObject()

Creates a new object instance and returns its identity.

VBRuntimeObjectId CreateObject()

Returns

VBRuntimeObjectId

RemoveRef(VBRuntimeObjectId, IBindingHandle)

Drops a reference to an instance and returns the remaining reference count.

int RemoveRef(VBRuntimeObjectId instance, IBindingHandle handle)

Parameters

instance VBRuntimeObjectId
handle IBindingHandle

Returns

int

TryRemoveObject(VBRuntimeObjectId)

Removes an instance whose reference count has reached zero.

bool TryRemoveObject(VBRuntimeObjectId instance)

Parameters

instance VBRuntimeObjectId

Returns

bool