public async Task RegisterAsync(string name, SelectorsRegisterOptions options = default) { options ??= new SelectorsRegisterOptions(); var script = ScriptsHelper.EvaluationScript(options?.Script, options?.Path); await _channel.RegisterAsync(name, script, options?.ContentScript).ConfigureAwait(false); }
internal Task RegisterAsync(SelectorsRegisterParams registration) => _channel.RegisterAsync(registration);