What is EpohWin [中文]
EpohWin is a framework implemented in .NET Framework 4.7.2, designed to integrate the capabilities of browsers and system interfaces.
-
Lightweight HTTP Server
EpohWin is primarily a minimal HTTP server, allowing you to browse the application’s directories and files.
This means you can directly deploy web applications within the app, such as Vue, React, Angular, or even just write a native HTML file. -
Call System Interfaces
EpohWin allows you to call system interfaces via HTTP protocol, such as IO, Net, Database, Thread, Process, etc. -
Call Custom Interfaces
In addition to calling system interfaces, EpohWin can dynamically invoke user-defined interfaces without the need to compile or package the entire application.
Using EpohWin is very simple, just one step:
- Place EpohWin.Win.exe in the folder containing index.html, and run EpohWin.Win.exe to access the application homepage.
If you need to call system interfaces, it's also very easy:
// The path lib/hello-world is the unique identifier for the system interface
fetch("http://localhost:33/api/lib/hello-world")
.then(res => res.text())
.then(data => {
// Here you can get the return value of the system interface
console.log(data);
});
If you need to call custom interfaces, just follow these two steps:
- Copy your user DLL files into the DLLs folder.
- Call via HTTP.
-
File Operations
- System.IO.File
- System.IO.Directory
- [TODO]
-
Database Operations
- SQLite
- [TODO]
-
Process Operations
- System.Diagnostics.Process
- [TODO]
-
[TODO] Security
TODO