This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Custom Local Resource Handling
softoille@gmail.com edited this page Nov 29, 2019
·
1 revision
Chromely supports 3 ways to load html and other files using:
- Real website url
- Local resource loading with a custom scheme handler
- File protocol
Please see more info on loading files @ Loading Html.
This wiki page, highlights option 2.
Both CefGlue and CefSharp apps can be configured with custom local resource scheme handlers. This is done in ChromelyConfiguration scheme registration method (RegisterSchemeHandler). In most cases the default resource scheme handler would be enough.
A custom scheme handler would require:
- The scheme name - "local", http or and custom schemes
- The domain name - this can be empty or any other domain name if you want to keep same scheme name for multiple schemes.
- The handler factory (the actual resource scheme handler object must be defined in the factory).
To register a custom scheme handler please check - Configuration.
The custom local resource scheme handler is located here.
The custom local resource scheme handler is located here.
Chromely
Getting Started
The Basics
Digging Deeper
- Sub-Process
- Infrastructure
- Restful Resources
- Register Resource Assemblies
- Custom Local Resource Handling
- Custom Scheme Handling
- Expose .NET class to JavaScript
- Generic Message Routing
- Real-time with Websocket
- External Url Registration
Angular - React - Vue