Skip to content

Introduce auth interceptor context for C# #4260

Merged
jboeuf merged 1 commit intogrpc:release-0_12from
jtattermusch:auth_interceptor_context
Dec 7, 2015
Merged

Introduce auth interceptor context for C# #4260
jboeuf merged 1 commit intogrpc:release-0_12from
jtattermusch:auth_interceptor_context

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

To ensure future API stability with respect to #4154. (populating AuthInterceptorContext with new properties is an additive API change).

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.

any reason why you're not passing the whole context here (as opposed to individual args)? That will make things easier when you add the auth_context.

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.

Nice observation. I am doing this because of the way C# native interop works. If I passed the struct or pointer to the struct, I would need to redefine the same struct in C# code and make sure the memory layout of the C vs C# struct is the same. So for now, the approach I am using right now is less error-prone.

@jtattermusch
Copy link
Copy Markdown
Contributor Author

ping?

@jboeuf
Copy link
Copy Markdown
Contributor

jboeuf commented Dec 7, 2015

Sorry. I thought I had already merged this for some reason.

jboeuf added a commit that referenced this pull request Dec 7, 2015
Introduce auth interceptor context for C#
@jboeuf jboeuf merged commit 8f45418 into grpc:release-0_12 Dec 7, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants