v2.0.0
Breaking changes
ITaskStateManager — string taskName → object taskKey
All methods now accept object taskKey instead of string taskName. String keys continue to work unchanged — no code changes required unless you used named arguments (taskName: → taskKey:).
See the migration guide for full details.
⚠️ v2.0.0 has critical bugs inTaskTurnstile.Testing— upgrade to v2.0.1.
What's new
- Object task keys — pass strings, primitives, enums,
Guid,DateTime, or any complex object as a task key TaskKeyConverter.ToKey(object key)— public utility to resolve the store key from any object; useful in tests asserting againstITaskStateStore- Keys stored with type prefix for human readability (e.g.
System.Int32:42,MyApp.JobKey:a3f9...)
Key conversion rules
| Type | Stored as |
|---|---|
string |
as-is |
Primitives, enums, Guid, DateTime, etc. |
{TypeFullName}:{value} |
| Complex objects | {TypeFullName}:{sha256-of-json} |