Skip to content

Why Apply can't access to event's metadata ? #831

Description

@nlips

I use the AddUserClaimsMetadata configuration method to have the user's identity in all events metadata.
But how to use this data in the AggregateState apply function ?
My aggregate has a notion of owner that I wish to deduce from its creation event.

Activity

  1. rasmus commented on Feb 24, 2021

    @rasmus
    Member

    Currently some event metadata is generated when the event is emitted, other when the event is saved into the event store.

  2. rasmus commented on Feb 24, 2021

    @rasmus
    Member

    The Emit method does allow you to provide additional metadata. While it may not be exactly what you wanted, if you provide the metadata there, it would be the same when subscribers and read models read it

  3. locked and limited conversation to collaborators on Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions