"Replace OWIN self-hosting with WebView2 virtual hosting" -m "-
Remove OWIN server implementation (StaticFileServer, Startup)" -m "- Implement
WebView2 SetVirtualHostNameToFolderMapping in Frm_WebManual" -m "- Remove all
OWIN NuGet packages from packages.config and .vbproj" -m "- Add comprehensive
guide document (WEBVIEW2_VIRTUAL_HOSTING.md)" -m "- Mark legacy OWIN files as
deprecated
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
Imports System.IO
|
||||
Imports Eco2Ar.WebServer
|
||||
|
||||
Public Class MdiMain
|
||||
|
||||
@@ -21,17 +20,9 @@ Public Class MdiMain
|
||||
|
||||
'''현재열려있는폼의 이름을 변경한다.
|
||||
Public OpenedForm As E_MenuIdx = E_MenuIdx.NONE
|
||||
Private webServer As StaticFileServer
|
||||
|
||||
Private Sub MdiMain_FormClosed(sender As Object, e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
|
||||
pLog.Add("FormClosed", True)
|
||||
|
||||
' 웹 서버 정리
|
||||
If webServer IsNot Nothing Then
|
||||
webServer.Stop()
|
||||
webServer.Dispose()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub MdiMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
|
||||
@@ -252,19 +243,6 @@ Public Class MdiMain
|
||||
|
||||
pLog.Add("Program Start")
|
||||
|
||||
Try
|
||||
' 웹 서버 초기화 및 시작
|
||||
Dim wwwPath = Path.Combine(Application.StartupPath, "wwwroot")
|
||||
webServer = New StaticFileServer(wwwPath, 58123)
|
||||
webServer.Start()
|
||||
'If System.Diagnostics.Debugger.IsAttached Then
|
||||
' webServer.OpenInBrowser()
|
||||
'End If
|
||||
Catch ex As Exception
|
||||
' 웹 서버 시작 실패해도 프로그램은 계속 실행
|
||||
Debug.WriteLine("웹 서버 시작 실패: " & ex.Message)
|
||||
End Try
|
||||
|
||||
' WebView2 Fixed Version 체크
|
||||
CheckWebView2Runtime()
|
||||
|
||||
@@ -3991,14 +3969,22 @@ ENDSTAT: '//오류발생시 강제종료를 위한 분기문
|
||||
|
||||
Dim frmManual As Frm_WebManual = Nothing
|
||||
Private Sub ManualToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ManualToolStripMenuItem.Click
|
||||
If frmManual Is Nothing OrElse frmManual.IsDisposed Then
|
||||
frmManual = New Frm_WebManual()
|
||||
Try
|
||||
If frmManual Is Nothing OrElse frmManual.IsDisposed Then
|
||||
frmManual = New Frm_WebManual()
|
||||
End If
|
||||
|
||||
|
||||
If frmManual.WindowState = FormWindowState.Minimized Then
|
||||
frmManual.WindowState = FormWindowState.Normal
|
||||
End If
|
||||
|
||||
frmManual.Show()
|
||||
End If
|
||||
If frmManual.WindowState = FormWindowState.Minimized Then
|
||||
frmManual.WindowState = FormWindowState.Normal
|
||||
End If
|
||||
frmManual.Activate()
|
||||
frmManual.Activate()
|
||||
Catch ex As Exception
|
||||
MessageBox.Show("매뉴얼 표시 중 오류가 발생했습니다: " & ex.Message,
|
||||
"오류", MessageBoxButtons.OK, MessageBoxIcon.Error)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
|
||||
Reference in New Issue
Block a user