コード例 #1
0
        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);
        }
コード例 #2
0
 internal Task RegisterAsync(SelectorsRegisterParams registration) => _channel.RegisterAsync(registration);