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
External Url Registration
Chromely allows custom url to be registered. This is different from custom scheme handling registration.
There are 2 types of custom urls:
- Custom url
- External custom url
A class is provided to instantiate a custom url.
public class UrlScheme
{
....
public string Scheme { get; set; }
public string Host { get; set; }
public bool IsExternal { get; set; }
....
}
where IsExternal determines whether it is custom scheme or an external scheme.
This is left to the developer to decide what it could be used for.
A custom url scheme is registered in ChromelyConfiguration.
ChromelyConfiguration config = ChromelyConfiguration()
.Create()
....
.RegisterCustomrUrlScheme("http", "chromely.com")
.RegisterCustomrUrlScheme("test", "test.com")
.....
An external url is used to launch a url/website in an external browser. As the examples below, both www.google.com and https://github.com/mattkol/Chromely will be launched in an external default browser.
A custom external url scheme is registered in ChromelyConfiguration.
ChromelyConfiguration config = ChromelyConfiguration()
.Create()
....
.RegisterExternaleUrlScheme("https", "google.com")
.RegisterExternaleUrlScheme("https", "github.com")
.....
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