暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Program.netcore.cs 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright © 2020 The CefSharp Authors. All rights reserved.
  2. //
  3. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
  4. using System.Diagnostics;
  5. using CefSharp.RenderProcess;
  6. namespace CefSharp.BrowserSubprocess
  7. {
  8. /// <summary>
  9. /// When implementing your own BrowserSubprocess
  10. /// - For .Net Core use <see cref="BrowserSubprocessExecutable"/> (No WCF Support)
  11. /// - Include an app.manifest with the dpi/compatability sections, this is required (this project contains the relevant).
  12. /// - If you are targeting x86/Win32 then you should set /LargeAddressAware (https://docs.microsoft.com/en-us/cpp/build/reference/largeaddressaware?view=vs-2017)
  13. /// </summary>
  14. public class Program
  15. {
  16. public static int Main(string[] args)
  17. {
  18. Debug.WriteLine("BrowserSubprocess starting up with command line: " + string.Join("\n", args));
  19. //Add your own custom implementation of IRenderProcessHandler here
  20. IRenderProcessHandler handler = null;
  21. //The BrowserSubprocessExecutable provides BrowserSubProcess functionality
  22. //specific to CefSharp there is no WCF support used for the sync JSB feature.
  23. var browserProcessExe = new BrowserSubprocessExecutable();
  24. var result = browserProcessExe.Main(args, handler);
  25. Debug.WriteLine("BrowserSubprocess shutting down.");
  26. return result;
  27. }
  28. }
  29. }