You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
A $context path in a produces mapping is rendered against what the enclosing artifact actually receives, so a rendered application compiles. A command handler receives Arc's CommandContext, which carries none of Occurred, Identity, Tenant, CausedBy or Causation — those belong to Screenplay's own context type — and rendering them as members of it produced 15 compilation errors on the language's own invoicing.play. The handler now asks the runtime for what the document reads: the tenant from ITenantIdAccessor, the caller from IIdentityProvider, roles and claims from ICurrentPrincipalAccessor, the cause from ICausationManager, and $context.occurred from the clock. (#32)
A context value the document maps onto a property that cannot hold it — the runtime's string tenant onto a Uuid concept — is dropped and reported instead of rendered into a conversion that does not exist. (#32)
A command handler reading $eventContext or $eventSourceId, which it runs too early to have, is reported rather than rendered. (#32)