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

[http-server-csharp] Placeholder is generated for long-running operation #5022

Open
ArcturusZhang opened this issue Nov 8, 2024 · 0 comments

Comments

@ArcturusZhang
Copy link
Member

I am trying this server generator on the contoso project: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp#L50

The two LRO generate with placeholders:

        ///<summary>
        /// Creates or updates a Widget asynchronously.
        ///</summary>
        [HttpPatch]
        [Route("/widgets/{widgetName}")]
        [ProducesResponseType((int)HttpStatusCode.Created, Type = typeof(WidgetSuite))]
        [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(WidgetSuite))]
        public virtual async Task<IActionResult> CreateOrUpdateWidget([FromQuery(Name = "api-version")] string apiVersion, string widgetName, [FromHeader(Name = "Content-Type")] string contentType = "application/merge-patch+json", WidgetSuite body)
        {
            var result = await WidgetsImpl.CreateOrUpdateWidgetAsync(apiVersion, widgetName, contentType, body);
            return Ok(result);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant