示例#1
0
        public void ApplyLink(LinkTagOptions options)
        {
            _ = options ?? throw new ArgumentNullException(nameof(options));

            _jsInProcessObjectRef !.InvokeVoid(
                "addOrUpdateLink",
                options);
        }
示例#2
0
        public async ValueTask ApplyLinkAsync(LinkTagOptions options)
        {
            _ = options ?? throw new ArgumentNullException(nameof(options));

            var module = await _jsRuntime
                         .ImportOrGetModuleAsync(ModulePath, ModuleKey, _jsRefStore);

            await module.InvokeVoidAsync(
                "addOrUpdateLink",
                options);
        }