public void Configure(IApplicationBuilder app, IBuildsAndStartsWorkflow runner) { if (Environment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app .UseStaticFiles() // For Dashboard. .UseHttpActivities() .UseRouting() .UseEndpoints(endpoints => { // Elsa API Endpoints are implemented as regular ASP.NET Core API controllers. endpoints.MapControllers(); // For Dashboard. endpoints.MapFallbackToPage("/_Host"); }); }
public HostedWorkflowRunner(IBuildsAndStartsWorkflow workflowRunner, IWorkflowInstanceStore instanceStore) { _workflowRunner = workflowRunner ?? throw new System.ArgumentNullException(nameof(workflowRunner)); _instanceStore = instanceStore ?? throw new System.ArgumentNullException(nameof(instanceStore)); }
public LaunchController(IBuildsAndStartsWorkflow workflowRunner) { _workflowRunner = workflowRunner; }