Exemplo n.º 1
0
        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");
            });
        }
Exemplo n.º 2
0
 public HostedWorkflowRunner(IBuildsAndStartsWorkflow workflowRunner, IWorkflowInstanceStore instanceStore)
 {
     _workflowRunner = workflowRunner ?? throw new System.ArgumentNullException(nameof(workflowRunner));
     _instanceStore  = instanceStore ?? throw new System.ArgumentNullException(nameof(instanceStore));
 }
Exemplo n.º 3
0
 public LaunchController(IBuildsAndStartsWorkflow workflowRunner)
 {
     _workflowRunner = workflowRunner;
 }