Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Processes - Cloud Events supporting components + Demos of usabe #9712

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

esttenorio
Copy link
Contributor

@esttenorio esttenorio commented Nov 14, 2024

Description

Adding components to allow "forwarding" internal events externally and allow a way to subscribe to them outside the SK Process.

Includes:

  • Piped EventName in ProcessStepEdgeBuilder
  • Piped SourceEventName and EventId into KernelProcessEdge and ProcessMessage
  • Adding "EmitMessageExternally" in LocalProcess
  • New components KernelProcessEventsSubscriber and KernelProcessEventsSubscriberInfo(passed to KernelProcess)
  • Demo including 2 ways of emitting cloud events: using steps and using KernelProcessEventsSubscriber approach -> More details in dotnet/samples/Demos/PorcessWithCloudEvents/README.md

Fixes #9722
Fixes #9721

Contribution Checklist

@esttenorio esttenorio added experimental Associated with an experimental feature processes labels Nov 14, 2024
@esttenorio esttenorio self-assigned this Nov 14, 2024
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Nov 14, 2024
@github-actions github-actions bot changed the title .NET: Processes - Cloud Events supporting components + Demos of usabe .Net: Processes - Cloud Events supporting components + Demos of usabe Nov 14, 2024
@@ -22,6 +22,8 @@ public class Step03a_FoodPreparation(ITestOutputHelper output) : BaseTest(output
public async Task UsePrepareFriedFishProcessAsync()
{
var process = FriedFishProcess.CreateProcess();
process.LinkEventSubscribersFromType<FriedFishEventSubscribers>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove FishProcess changes, instead add another step to showcase only eventSubscribers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation experimental Associated with an experimental feature .NET Issue or Pull requests regarding .NET code processes
Projects
Status: Sprint: In Progress
2 participants