共用方式為


IDurableEntityContext Interface

Definition

Provides functionality for application code implementing an entity operation.

public interface IDurableEntityContext
type IDurableEntityContext = interface
Public Interface IDurableEntityContext

Properties

BatchPosition

The position of the currently executing operation within the current batch of operations.

BatchSize

The size of the current batch of operations.

EntityId

Gets the id of the currently executing entity.

EntityKey

Gets the key of the currently executing entity.

EntityName

Gets the name of the currently executing entity.

FunctionBindingContext

Contains function invocation context to assist with dependency injection at Entity construction time.

HasState

Whether this entity has a state.

OperationName

Gets the name of the operation that was called.

Methods

DeleteState()

Deletes the state of this entity.

DispatchAsync<T>(Object[])

Dynamically dispatches the incoming entity operation using reflection.

GetInput(Type)

Gets the input for this operation, as a deserialized value.

GetInput<TInput>()

Gets the input for this operation, as a deserialized value.

GetState<TState>(Func<TState>)

Gets the current state of this entity, for reading and/or updating. If this entity has no state yet, creates it.

Return(Object)

Returns the given result to the caller of this operation.

SetState(Object)

Sets the current state of this entity.

SignalEntity(EntityId, DateTime, String, Object)

Signals an entity to perform an operation, at a specified time. Any result or exception is ignored (fire and forget).

SignalEntity(EntityId, String, Object)

Signals an entity to perform an operation, without waiting for a response. Any result or exception is ignored (fire and forget).

SignalEntity<TEntityInterface>(EntityId, Action<TEntityInterface>)

Signals an entity to perform an operation.

SignalEntity<TEntityInterface>(EntityId, DateTime, Action<TEntityInterface>)

Signals an entity to perform an operation, at a specified time.

SignalEntity<TEntityInterface>(String, Action<TEntityInterface>)

Signals an entity to perform an operation.

SignalEntity<TEntityInterface>(String, DateTime, Action<TEntityInterface>)

Signals an entity to perform an operation, at a specified time.

StartNewOrchestration(String, Object, String)

Schedules an orchestration function named functionName for execution./>. Any result or exception is ignored (fire and forget).

Applies to