Skip to content

Set namespace of gRPC template #9907

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

Merged
merged 1 commit into from
May 2, 2019
Merged

Set namespace of gRPC template #9907

merged 1 commit into from
May 2, 2019

Conversation

JunTaoLuo
Copy link
Contributor

Addresses #8451.

Tested locally via CLI and VS.

@JunTaoLuo JunTaoLuo requested review from JamesNK and shirhatti May 2, 2019 01:24
@JunTaoLuo JunTaoLuo requested a review from ryanbrandenburg as a code owner May 2, 2019 01:25
@@ -1,5 +1,7 @@
syntax = "proto3";

option csharp_namespace = "GrpcService_CSharp";
Copy link
Member

Choose a reason for hiding this comment

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

This will be replaced with the project's namespace?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, wouldn't this have to be GrpcService-CSharp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure exactly how the substitution works but GrpcService_CSharp works. I tested this locally to make sure the project's namespace is used.

@Eilon Eilon added the area-grpc Includes: GRPC wire-up, templates label May 2, 2019
Copy link
Contributor

@ryanbrandenburg ryanbrandenburg left a comment

Choose a reason for hiding this comment

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

You proved my one concern wrong, :shipit:.

@JunTaoLuo JunTaoLuo merged commit ea5e955 into master May 2, 2019
@JunTaoLuo JunTaoLuo deleted the johluo/grpc-namespace branch May 2, 2019 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grpc Includes: GRPC wire-up, templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants