-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
api-suggestion(1) Early API idea and discussion, it is NOT ready for implementation(1) Early API idea and discussion, it is NOT ready for implementation
Description
Background and motivation
API Proposal
namespace System.Xxx;
public interface IWebBrowserDiscovery {
Task<IEnumerable<WebBrowser>> GetInstalledBrowsers();
Task<WebBrowser> GetDefaultBrowser(EProtocolType protocol); // http, https, ftp, mailto, webcal
Task<WebBrowser> GetDefaultBrowser(string fileType); // html, htm, xml, pdf, ...
}
internal class WebBrowserDiscovery {}API Usage
public class TestModel {
public TestModel(IWebBrowserDiscovery webBrowserDiscovery) {}
public async Task Load() {
var browsers = await webBrowserDiscovery.GetInstaledBrowsers();
}
}Alternative Designs
No response
Risks
No response
Will this feature affect UI controls?
No
Metadata
Metadata
Assignees
Labels
api-suggestion(1) Early API idea and discussion, it is NOT ready for implementation(1) Early API idea and discussion, it is NOT ready for implementation
