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

Closed
live1206 opened this issue Nov 5, 2024 · 0 comments · Fixed by #47049
Closed

Parse RequestContext and set default for null context #46980

live1206 opened this issue Nov 5, 2024 · 0 comments · Fixed by #47049
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);
}

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

Successfully merging a pull request may close this issue.

1 participant