This commit is contained in:
2025-07-25 16:27:29 +08:00
parent 38b27cd481
commit b5cad3c171
1114 changed files with 68009 additions and 23981 deletions
@@ -153,6 +153,7 @@ Shows the basic setup of display engine, MongoDB server, licensing, and other co
It demonstrates proper initialization and teardown of key components.</p>
<h3 id="source-code">Source Code</h3>
<pre><code class="lang-csharp" name="SampleCode">using Hi.Disp;
using Hi.HiNcKits;
using Hi.Licenses;
using Hi.MongoUtils;
using System;
@@ -174,18 +175,11 @@ namespace Sample
static int Main(string[] args)
{
Console.WriteLine(&quot;HiAPI starting.&quot;);
License.LogInAll();
DispEngine.Init();
MongoServer.Default = MongoServer.Run(new MongoRunnerOptions()
{
MongoPort = 28100
});
LocalApp.AppBegin();
Console.WriteLine(&quot;Hello World! HiAPI.&quot;);
MongoServer.Default.Dispose();
DispEngine.FinishDisp();
License.LogOutAll();
LocalApp.AppEnd();
Console.WriteLine(&quot;HiAPI exited.&quot;);
return 0;