//using Dapr.Client; //using Microsoft.AspNetCore.Mvc; //namespace FrameworkSL.Controllers.SchedulerTaskGenerator //{ // [ApiController] // [Route("SchedulerTest")] // public class SchedulerTestController : ControllerBase // { // private readonly DaprClient _dapr; // public SchedulerTestController(DaprClient dapr) // { // _dapr = dapr; // } // [HttpPost("send")] // public async Task Send() // { // var payload = new // { // Message = "Hello from GB5!", // Time = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss") // }; // await _dapr.InvokeBindingAsync( // "scheduler", // bindingName (component name) // "create", // operation // payload // data // ); // return Ok(new // { // Result = "Message sent to RabbitMQ queue: scheduler-queue", // Payload = payload // }); // } // } //}