publish aicam server.

This commit is contained in:
iambossTC 2025-07-14 17:52:07 +08:00
parent 5c6f6c4a35
commit 3dc024d94f

View File

@ -1,4 +1,5 @@
using Hi.Disp; using Hi.Disp;
using Hi.HiNcKits;
using Hi.Licenses; using Hi.Licenses;
using Hi.MongoUtils; using Hi.MongoUtils;
using Hi.Wpf.Disp; using Hi.Wpf.Disp;
@ -26,13 +27,11 @@ namespace Sample.Disp
/// <param name="displayee">The object that implements IDisplayee to be rendered</param> /// <param name="displayee">The object that implements IDisplayee to be rendered</param>
public static void RunApplication(string title, IDisplayee displayee) public static void RunApplication(string title, IDisplayee displayee)
{ {
SingleUserApp.AppBegin();
Application app = new Application(); Application app = new Application();
app.Exit += (o, e) => app.Exit += (o, e) =>
{ {
if(MongoServer.IsDefaultInit) SingleUserApp.AppEnd();
MongoServer.Default.Dispose();
DispEngine.FinishDisp();
License.LogOutAll();
}; };
app.Run(new RenderingWindow() app.Run(new RenderingWindow()
{ {