GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cefsharp/CefSharp.AppHost: Provides a way to run part of your application out of process, including the UI

This repository was archived by the owner on Jun 7, 2022. It is now read-only.
BranchesTags
Open more actions menu
 
 

Latest commit

 

History

113 Commits
113 Commits

Folders and files

NameName
Last commit message
Last commit date
CefSharp.AppHost.Client
CefSharp.AppHost.Client
 
 
CefSharp.AppHost.Example.Client
CefSharp.AppHost.Example.Client
 
 
CefSharp.AppHost.Example.Remote.Services
CefSharp.AppHost.Example.Remote.Services
 
 
CefSharp.AppHost.Example.Wpf
CefSharp.AppHost.Example.Wpf
 
 
CefSharp.AppHost.Interfaces
CefSharp.AppHost.Interfaces
 
 
CefSharp.AppHost.Remoting.WPF
CefSharp.AppHost.Remoting.WPF
 
 
CefSharp.AppHost.Remoting
CefSharp.AppHost.Remoting
 
 
CefSharp.AppHost.Server
CefSharp.AppHost.Server
 
 
Install
Install
 
 
NuSpec
NuSpec
 
 
.gitignore
.gitignore
 
 
CefSharp.AppHost.sln
CefSharp.AppHost.sln
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 

Repository files navigation

CefSharp AppHost

A Port of Red Gate AppHost specific for use with CefSharp This library provides a way to run much of your application out of process, including the UI.

CefSharp.AppHost.Server: Used in your host application to start the child process and return a handle to the entry point

CefSharp.AppHost.Client: A stub application that will be started with some arguments including the assembly that contains your application which it will load via reflection.

CefSharp.AppHost.Interfaces: Contains the interfaces that you need to implement, starting with IOutOfProcessEntryPoint.

Key Types & Control Flow

This library came out of the need to load multiple versions of a native binary inside a single process. This does not work, so we must load stubs inside the host process and remote in the UI that the native libraries create.

  1. IOutOfProcessEntryPoint: The code that you wish to run out of process implements this interface to create the remote UI. It is called by CefSharp.AppHost.Client via reflection
  2. ISafeChildProcessHandle: The CefSharp.AppHost.Client will take your framework element and adapt it into an IRemoteElement that can be sent across the remoting boundary.
  3. ChildProcessFactory: This will start the remoting channel, the child process and take the IRemoteElement created in the child process and unwrap it back into a FrameworkElement

Examples

There is an example application. It uses WPF to create the Windows chrome, but then the actual content is loaded externally and remoted in. It also shows how to share some services across the remoting boundary.

Use Cases

  • Write your application to take advantage of 64-bit machines with lots of memory, and load inside a 32 bit process
  • Use native libraries in a safe way that don't conflict with other assemblies in the same app domain
  • Isolate badly behaved components

About

Provides a way to run part of your application out of process, including the UI

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.