1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| var builder = WebApplication.CreateBuilder(args).Inject();
| builder.Host.UseSerilogDefault().ConfigureAppConfiguration((hostingContext, config) =>
| {
| config.AddJsonFile("applicationsettings.json", optional: true, reloadOnChange: true);
| });
|
| // ¹¤×÷Á÷×¢²á
| //builder.Services.AddWorkflow(options =>
| //{
| // options.UsePersistence(sp => sp.GetService<FurionPersistenceProvider>());
| //});
| // ¹¤×÷Á÷JSON×¢²á
| //builder.Services.AddWorkflowDSL();
|
| var app = builder.Build();
| // ¹¤×÷Á÷×¢Èë
| //app.UseWorkflow();
| app.Run();
|
|