Skip to content

Entities: Make InitializeState support Async operations #263

@gorillapower

Description

@gorillapower

I have a requirement to create initial Entity state from an external source (db, blob, etc).
However currently, the override to create initial state for an Entity does not support async operations, forcing me to do syncronous calls.

Suggestion

protected override async Task<T> InitializeStateAsync(TaskEntityOperation operation)
{
     //perform async operations
}

Metadata

Metadata

Labels

P2PerformanceExperience latency or throughput issues.durable-entitiesRelated to the Durable Entities support milestone

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions