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

Remove UnaryResult() and ReturnNil() helper methods #589

Merged
merged 4 commits into from
Dec 21, 2022

Conversation

mayuki
Copy link
Member

@mayuki mayuki commented Dec 21, 2022

This PR removes UnaryResult() and ReturnNil() helper methods from ServiceBase<T>.
If you want to return a value instead of using the async method, use UnaryResult.FromResult<T>(T value).

Breaking changes

  • Remove ServiceBase<T>.UnaryResult()
  • Remove ServiceBase<T>.ReturnNil()

Notable changes

  • UnaryResult.Nil is now deprecated. Use non-generic UnaryResult return type or UnaryResult.FromResult(Nil.Default) instead.

@mayuki mayuki mentioned this pull request Dec 21, 2022
28 tasks
@mayuki mayuki merged commit b7a6e5d into 5.0 Dec 21, 2022
@mayuki mayuki deleted the feature/RemoveHelperMethods branch December 21, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant