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

Parse RequestContext and set default for null context #46980

Open
live1206 opened this issue Nov 5, 2024 · 0 comments
Open

Parse RequestContext and set default for null context #46980

live1206 opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation

Comments

@live1206
Copy link
Member

live1206 commented Nov 5, 2024

private static (CancellationToken CancellationToken, ErrorOptions ErrorOptions) ApplyRequestContext(RequestContext? requestContext)
{
if (requestContext == null)
{
return (CancellationToken.None, ErrorOptions.Default);
}
return (requestContext.CancellationToken, requestContext.ErrorOptions);
}

@live1206 live1206 added the CodeGen Issues that relate to code generation label Nov 5, 2024
@live1206 live1206 self-assigned this Nov 5, 2024
@live1206 live1206 added the Client This issue points to a problem in the data-plane of the library. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. CodeGen Issues that relate to code generation
Projects
None yet
Development

No branches or pull requests

1 participant