본문 바로가기

C# 65

HttpListener를 이용한 Simple한 Web서버 구현 예제 출처 : https://gist.github.com/define-private-public/d05bc52dd0bed1c4699d49e2737e80e7 A Simple HTTP server in C# A Simple HTTP server in C#. GitHub Gist: instantly share code, notes, and snippets. gist.github.com public class HttpListenerWebServer { private HttpListener listner; private string url = string.Empty; private int requestCount = 0; private FormTray myTrayForm = null; public HttpListener.. 2022. 8. 18.
[C#] HttpWebRequest/HttpWebResponse Memory leak 현상 발생 관련 사항 출처 : c# - WebRequest/WebResponse Memory leak - Stack Overflow WebRequest/WebResponse Memory leak I have an .Net Framework #4.0 application that makes a large number of web requests using the WebRequest/WebResponse classes , as i see it has memory leak (or maybe i am doing something wrong) I W... stackoverflow.com .NET Framework의 HttpWebReqeust , HttpWebResponse Memory가 누수된다는 현상이 보고되고 있습니다. 4.5 이.. 2022. 8. 12.
[webview2] window.print 호출 시에 사용자의 Default Printer 선택 하게 옵션 설정 출처 : Set the system default printer as the default printer (admx.help) Set the system default printer as the default printer Set the system default printer as the default printer Tells Microsoft Edge to use the system default printer as the default choice in Print Preview instead of the most recently used printer. If you disable this policy or don't configure it, Print Preview u admx.help HKEY_C.. 2022. 6. 13.
WebView2 Fixed 버젼 이용 시에 참조 부분 // msedgewebview2.exe 가 포함 되어 있는 디렉터리를 이용하여 참조 시에 // 아래와 같이 지정 하여 사용 하였습니다. this.webView2.CreationProperties = new Microsoft.Web.WebView2.WinForms.CoreWebView2CreationProperties { BrowserExecutableFolder = string.Format(@"{0}\webView2", Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)), // Webview2 관련 Fixed 구성 요소 디렉터리 위치 Language="en-US" }; await webView2.EnsureCoreWebView2Async(); 2022. 5. 29.