HeaderInterceptor Delegate |
Interceptor for call headers.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.12.0.0
Syntaxpublic delegate void HeaderInterceptor(
IMethod method,
Metadata metadata
)
Public Delegate Sub HeaderInterceptor (
method As IMethod,
metadata As Metadata
)
public delegate void HeaderInterceptor(
IMethod^ method,
Metadata^ metadata
)
type HeaderInterceptor =
delegate of
method : IMethod *
metadata : Metadata -> unit
Parameters
- method
- Type: Grpc.CoreIMethod
- metadata
- Type: Grpc.CoreMetadata
RemarksHeader interceptor is no longer to recommented way to perform authentication.
For header (initial metadata) based auth such as OAuth2 or JWT access token, use MetadataCredentials.
See Also