mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 08:16:34 +08:00
新增了UI节点
This commit is contained in:
39
Serein.CloudWorkbench/Program.cs
Normal file
39
Serein.CloudWorkbench/Program.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using Serein.CloudWorkbench.Components;
|
||||
using Serein.CloudWorkbench.Services;
|
||||
|
||||
namespace Serein.CloudWorkbench
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
|
||||
|
||||
// ×¢²á CounterService ×÷Ϊµ¥Àý
|
||||
builder.Services.AddSingleton<CounterService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.UseAntiforgery();
|
||||
|
||||
app.MapRazorComponents<App>()
|
||||
.AddInteractiveServerRenderMode();
|
||||
|
||||
app.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user