autorest.csharp: Include both protocol method and grow-up method will break user
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);
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
My reasoning is the following: we want 4 things:
The way I think about it is that we postponed the official support, exploring all corner cases (e.g. casing untyped LROs to typed LROs), etc. But I think it would be totally reasonable to provide informal guidance to teams who run into simple cases like this one, unless we have a concrete concern about the informal guidance.