Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Created June 29, 2020 00:58
Show Gist options
  • Save smaglio81/6ae48a9c47c8f5054604997f13a2cfcb to your computer and use it in GitHub Desktop.
Save smaglio81/6ae48a9c47c8f5054604997f13a2cfcb to your computer and use it in GitHub Desktop.
using System.Linq;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights;
using Microsoft.AspNetCore.Mvc;
namespace YourNamespace
{
[ApiController]
[Route("[controller]")]
public class ExampleController : ControllerBase
{
public CodePushedController() {}
[ServiceFilter(typeof(TrackRequestBodyAttribute))]
public async Task<IActionResult> PostAsync([FromBody] CodePushedRequest request)
{
// your code
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment