Skip to content

Class based entities #149

Description

@ahmedmuhsin

Part of #141

Goal

Offer a class or struct style entity model on top of the function style contract, where exported methods are operations and a typed field holds state.

Scope

  • Add a base entity type that dispatches an operation to a matching exported method by name and binds the operation input and the entity state.
  • Keep the function style contract as the primitive the class model builds on.

Reference

durabletask-dotnet TaskEntity<TState>, which dispatches operations to public methods and exposes state through a State property. The method binding rules there are a good guide for what to support and what to reject.

Note

Go has no attribute model identical to .NET. The exact dispatch mechanism, exported methods matched by name against the EntityBatchRequest operation names, needs a short design pass before implementation.

Depends on

The foundational entity runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions