Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Include both protocol method and grow-up method will break user #2014

Description

@pshao25

Describe the issue or request
We are considering adding both protocol method and grow-up method into DPG client. Eg.,

// protocol method
public virtual async Task<Response> GetModelAsync(string mode, RequestContext context = null); 
// grow-up method.
public virtual async Task<Response<Model>> GetModelAsync(string mode, CancellationToken cancellationToken = default); 

That will break if user calls GetModelAsync("mode") without RequestContext and CancellationToken.

This issue does not exist in post. Eg.,

// protocol method
public virtual async Task<Response> PostModelAsync(RequestContent requestContent, RequestContext context = null); 
// grow-up method.
public virtual async Task<Response<Model>> PostModelAsync(Input mode, CancellationToken cancellationToken = default); 

Metadata

Metadata

Assignees

Labels

v3Version 3 of AutoRest C# generator.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions