mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
621 B
23 lines
621 B
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
namespace DistDemoApp;
|
|
|
|
[ApiController]
|
|
[Route("api/dist-demo/dapr")]
|
|
public class ProviderScenarioController : AbpController
|
|
{
|
|
private readonly IDistEventScenarioRunner _scenarioRunner;
|
|
|
|
public ProviderScenarioController(IDistEventScenarioRunner scenarioRunner)
|
|
{
|
|
_scenarioRunner = scenarioRunner;
|
|
}
|
|
|
|
[HttpGet]
|
|
public async Task<IActionResult> RunAsync()
|
|
{
|
|
await _scenarioRunner.RunAsync(DistEventScenarioProfile.DaprWeb());
|
|
return Ok(new { Status = "ScenarioCompleted", Profile = "dapr-web" });
|
|
}
|
|
}
|
|
|