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

Add new TaskOption overload for skipping input param #110

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

jviau
Copy link
Member

@jviau jviau commented Jan 19, 2023

Adds some overloads to protect against accidentally supplying TaskOptions as input.

@jviau jviau requested a review from cgillum January 19, 2023 23:10
Copy link
Member

@davidmrdavid davidmrdavid left a comment

Choose a reason for hiding this comment

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

Almost ready to approve, just a minor question and nitpick

Comment on lines +112 to +118

/// <returns>
/// A task that completes when the activity completes or fails. The result of the task is the activity's return value.
/// </returns>
/// <inheritdoc cref="CallActivityAsync(TaskName, object?, TaskOptions?)"/>
public virtual Task CallActivityAsync(TaskName name, TaskOptions options)
=> this.CallActivityAsync(name, null, options);
Copy link
Member

Choose a reason for hiding this comment

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

Should we really inherit the docs from the CallActivityAsync with the input parameter?

Copy link
Member

Choose a reason for hiding this comment

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

Same comment for the changes in CallSubOrchestrator

Copy link
Member Author

Choose a reason for hiding this comment

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

To be honest, I don't really know the answer to that. @cgillum suggested I do it on another PR so I did 🤷

Copy link
Member

Choose a reason for hiding this comment

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

Well, even if this were off, it's a non-blocking concern

Copy link
Member

@davidmrdavid davidmrdavid left a comment

Choose a reason for hiding this comment

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

LGTM, although it would be good to hear from @cgillum on the inheritdoc question

@jviau
Copy link
Member Author

jviau commented Jan 25, 2023

I will address/review the inheritdoc usages in a later PR.

@jviau jviau merged commit 448e92f into microsoft:main Jan 25, 2023
@jviau jviau deleted the task-options branch January 25, 2023 17:37
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