mirror of https://github.com/dapr/quickstarts.git
Removed controller in favor of minimal code approach in Program.cs
Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
This commit is contained in:
parent
c9e388c054
commit
a0be03d3fe
|
|
@ -1,23 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Net.Http;
|
||||
using System.Net;
|
||||
using Dapr;
|
||||
using Dapr.Client;
|
||||
|
||||
namespace order_processor.controller
|
||||
{
|
||||
[ApiController]
|
||||
public class order_processorController : Controller
|
||||
{
|
||||
[Topic("order_pub_sub", "orders")]
|
||||
[HttpPost("order-processor")]
|
||||
public HttpResponseMessage getCheckout([FromBody] int orderId)
|
||||
{
|
||||
Console.WriteLine("Subscriber received : " + orderId);
|
||||
return new HttpResponseMessage(HttpStatusCode.OK);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue