Class TestEntityOperation

Namespace
XBullet.EasyTesting.AzureFunctions
Assembly
XBullet.EasyTesting.AzureFunctions.dll

Supplies an operation to the SDK's real ITaskEntity dispatcher.

public sealed class TestEntityOperation : TaskEntityOperation
Inheritance
TestEntityOperation
Inherited Members
Extension Methods

Remarks

Invoke ITaskEntity.RunAsync explicitly. Input is serialized at construction, and null means no input. This helper does not provide worker binding, batching, replay, retries, or transactional rollback.

Constructors

TestEntityOperation(TestEntityContext, string, TestEntityState, object?, DataConverter?)

Creates an entity operation with shared context and state.

public TestEntityOperation(TestEntityContext context, string name, TestEntityState state, object? input = null, DataConverter? dataConverter = null)

Parameters

context TestEntityContext

The non-null entity context.

name string

The non-empty SDK operation name.

state TestEntityState

The non-null state shared across sequential operations.

input object

The optional input, serialized immediately.

dataConverter DataConverter

The input converter, or the SDK JSON default.

Properties

Context

Gets the context for this entity operation.

public override TaskEntityContext Context { get; }

Property Value

TaskEntityContext

HasInput

Gets a value indicating whether this operation has input or not.

public override bool HasInput { get; }

Property Value

bool

Name

Gets the name of the operation.

public override string Name { get; }

Property Value

string

State

Gets the state of the entity.

public override TaskEntityState State { get; }

Property Value

TaskEntityState

Methods

GetInput(Type)

Gets the input for this operation.

public override object? GetInput(Type inputType)

Parameters

inputType Type

The type to deserialize the input as.

Returns

object

The deserialized input type.