Files
lmxopcua/docs/ui-consistency/ot13-root-fields/device-forms/canary/Program.cs
T

11 lines
485 B
C#

using DeviceFormCanary.Components;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseStaticWebAssets();
builder.Services.AddSingleton(System.Reflection.DispatchProxy.Create<ZB.MOM.WW.OtOpcUa.AdminUI.Uns.IUnsTreeService, ProtocolReadOnlyProxy>());
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
var app = builder.Build();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
app.Run();