Skip to content

v2.0.0

Choose a tag to compare

@chunty chunty released this 14 May 14:49
· 3 commits to master since this release

Breaking changes

ITaskStateManagerstring taskNameobject 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 in TaskTurnstile.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 against ITaskStateStore
  • 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}