網頁:https://elsa-workflows.github.io/elsa-core/docs/installing-elsa-dashboard
Elsa.Dashboard提供了一個ASP.NET應用,可以通過網頁的方式管理工作流。本節介紹如何進行安裝和注冊相關服務。
安裝包
dotnet add package Elsa.Dashboard
注冊服務
請把下面代碼添加到ASP.NET項目的Startup.cs文件中。
public void ConfigureServices(IServiceCollection services) { services .AddElsaDashboard(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app .UseStaticFiles() .UseRouting() .UseEndpoints(endpoints => endpoints.MapControllers()); }
運行
當你的應用程序執行起來以后,你只需要在瀏覽器中導航到/elsa/home,就會顯示如下的界面:

持久化
默認情況下存儲在內存中,你也可以參考持久化提供程序persistence providers,可以更持久保存。
