From 3dc024d94f0c841739108d3dd66d4c6ed465b22c Mon Sep 17 00:00:00 2001 From: iambossTC Date: Mon, 14 Jul 2025 17:52:07 +0800 Subject: [PATCH] publish aicam server. --- Disp/DemoUtil.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Disp/DemoUtil.cs b/Disp/DemoUtil.cs index 9d0bb39..4852061 100644 --- a/Disp/DemoUtil.cs +++ b/Disp/DemoUtil.cs @@ -1,4 +1,5 @@ using Hi.Disp; +using Hi.HiNcKits; using Hi.Licenses; using Hi.MongoUtils; using Hi.Wpf.Disp; @@ -26,13 +27,11 @@ namespace Sample.Disp /// The object that implements IDisplayee to be rendered public static void RunApplication(string title, IDisplayee displayee) { + SingleUserApp.AppBegin(); Application app = new Application(); app.Exit += (o, e) => { - if(MongoServer.IsDefaultInit) - MongoServer.Default.Dispose(); - DispEngine.FinishDisp(); - License.LogOutAll(); + SingleUserApp.AppEnd(); }; app.Run(new RenderingWindow() {