public void ApplyLink(LinkTagOptions options) { _ = options ?? throw new ArgumentNullException(nameof(options)); _jsInProcessObjectRef !.InvokeVoid( "addOrUpdateLink", options); }
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); }