Skip to content

Expose GetCreateRequestMethod and GetMethodCollectionByOperation #7358

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

live1206
Copy link
Contributor

No description provided.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label May 15, 2025
Copy link
Contributor

No changes needing a change description found.

@@ -505,6 +508,12 @@ [.. primaryCtorOrderedParams.Select(p => p.InitializationValue ?? p)
this);
}

public ScmMethodProviderCollection GetMethodCollectionByOperation(InputOperation operation)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -514,7 +514,7 @@ private static List<int> GetSuccessStatusCodes(InputOperation operation)
return [.. statusCodes.OrderBy(i => i)];
}

internal MethodProvider GetCreateRequestMethod(InputOperation operation)
public MethodProvider GetCreateRequestMethod(InputOperation operation)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed in Azure/azure-sdk-for-net#50017

@live1206 live1206 marked this pull request as ready for review May 19, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants