Skip to content

How to run Durable Entities locally #540

@PejmanNik

Description

@PejmanNik

I have a small project to run the worker locally in a asp.net app, It’s mostly based on the practices in this library, but is there any documentation or source code you can refer me to for understanding how to handle entities?

Based on my understanding:

  1. Entity signals behave like normal orchestration calls, but the orchestration name becomes @{entity name}@{entity id}.
  2. Entities go through the same pipeline as orchestrations, so OrchestrationMiddleware can detect them.
  3. I can create an entity from DI using factory.TryCreateEntity, similar to orchestrations.

However, I haven’t been able to find any references or source code that explain how an entity is actually handled, especially how to read state, set state, and ultimately how should i set the orchestration result in this case.

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions