Skip to content

Add Nexus SAA sample - #214

Merged
jmaeagle99 merged 3 commits into
mainfrom
alicelin/NEXUS-618/nexus-saa-sample
Aug 31, 2026
Merged

Add Nexus SAA sample#214
jmaeagle99 merged 3 commits into
mainfrom
alicelin/NEXUS-618/nexus-saa-sample

Conversation

@atol

@atol atol commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What was changed

Adds a sample demonstrating using TemporalOperationHandler to start a standalone Activity.

@atol
atol marked this pull request as ready for review August 21, 2026 18:01
@atol
atol requested a review from a team as a code owner August 21, 2026 18:01
[NexusServiceHandler(typeof(IGreetingService))]
public class GreetingService
{
[NexusOperationHandler]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can simplify this a lot by using TemporalOperation. Removes the whole TemporalOperationHandler.FromHandleFactory

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Updated to use TemporalOperation.

@jmaeagle99 jmaeagle99 self-assigned this Aug 25, 2026

@jmaeagle99 jmaeagle99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Other than the following comment and the feedback in https://github.com/temporalio/samples-dotnet/pull/214/changes#r3846380545, I think this sample looks good.


using NexusRpc;

// Nexus service definition shared by the caller and the handler. It declares a single operation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I don't think the interface should document what backs the operation implementation and should be moved to said operation implementation, namely the GreetingService.

@jmaeagle99
jmaeagle99 merged commit f219ca5 into main Aug 31, 2026
8 checks passed
@jmaeagle99
jmaeagle99 deleted the alicelin/NEXUS-618/nexus-saa-sample branch August 31, 2026 21:25
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.

3 participants