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.
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
Reference
durabletask-dotnet
TaskEntity<TState>, which dispatches operations to public methods and exposes state through aStateproperty. 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
EntityBatchRequestoperation names, needs a short design pass before implementation.Depends on
The foundational entity runtime.