Removed controller in favor of minimal code approach in Program.cs

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
This commit is contained in:
Paul Yuknewicz 2022-01-31 10:15:32 -08:00 committed by Artur Souza
parent c9e388c054
commit a0be03d3fe
1 changed files with 0 additions and 23 deletions

View File

@ -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);
}
}
}