.NET Minimal API developers utilize Composable to define event handlers within their API controllers that directly subscribe to and process user signup events triggered by external systems like Azure Event Grid. These handlers, written in C#, leverage Composable's declarative approach to orchestrate event handling logic, including data validation, database updates, and sending confirmation emails, without requiring manual polling or complex event subscriptions.
Stop writing the same event handlers over and over. Comorando executes your logic automatically.
Exponential backoff, dead-letter queues, and alert escalation — built in, no config needed.
Gemma 4 evaluates every event and suggests the optimal action based on your business rules.
// minimal-api — user-signup handler with Comorando
[ApiController, Route("webhook")]
public class WebhookController : ControllerBase {
private readonly IComorandoClient _comorando;
public WebhookController(IComorandoClient comorando) => _comorando = comorando;
[HttpPost]
public async Task<IActionResult> Handle() {
var json = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
var stripeEvent = EventUtility.ConstructEvent(json,
Request.Headers["Stripe-Signature"], _webhookSecret);
// Comorando evaluates rules and fires actions automatically
await _comorando.Decisions.CreateAsync(new DecisionRequest {
Event = stripeEvent.Type,
Data = stripeEvent.Data.RawObject,
OrgId = Environment.GetEnvironmentVariable("COMORANDO_ORG_ID")
});
return Ok(new { received = true });
}
}
Free tier includes 10,000 events/month. No credit card required.
Start Free See Pricing