LocalhostPlugin
이 콘텐츠는 아직 번역되지 않았습니다.
Namespace NetWiv.Plugin.Localhost · Assembly NetWiv.Plugin.Localhost
public sealed class LocalhostPlugin : IPluginServes bundled frontend assets over HTTP on a selected local port.
Constructors
Section titled “Constructors”LocalhostPlugin
Section titled “LocalhostPlugin”public LocalhostPlugin(ushort port, string host = "localhost", Action<LocalhostRequest, LocalhostResponse> onRequest = null);Serves bundled frontend assets over HTTP on a selected local port.
Properties
Section titled “Properties”BoundPort
Section titled “BoundPort”public int BoundPort { get; }public string Name { get; }Methods
Section titled “Methods”Dispose
Section titled “Dispose”public void Dispose();Initialize
Section titled “Initialize”public void Initialize(PluginContext context);public void Setup(AppHandle app);