Skip to content

Conversation

@twsouthwick
Copy link
Contributor

@twsouthwick twsouthwick commented Sep 8, 2023

The properties bag from DispatchMiddlewareContext contains information
that might be useful from activities/orchestrators. However, they
currently do not show up from those context options. This change plumbs
the dictionary through and surfaces it for both activities and
orchestrators.

As part of this, the following changes are introduced to show a use case for sharing properties:

  • A new interface IContextProperties is added that just has the properties dictionary. However, this allows for shared code to
    set and get properties by type or by name.
  • A .Properties member is added to the activity and orchestration contexts
  • The serializers for messages and errors are retrieved from the .Properties so that they can be configured in middleware

If it would be easier to have just the properties change, I can separate the serializer change out.

The properties bag from DispatchMiddlewareContext contains information
that might be useful from activities/orchestrators. However, they
currently do not show up from those context options. This change plumbs
the dictionary through and surfaces it for both activities and
orchestrators.

As part of this, a new interface IContextProperties is added that just
has the properties dictionary. However, this allows for shared code to
set and get properties by type or by name.
@twsouthwick twsouthwick force-pushed the properties-in-context branch from b9b95fb to dba54bd Compare September 8, 2023 00:21
@davidmrdavid
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants