// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.JSInterop
{
///
/// Extension methods for .
///
public static class JSInProcessObjectReferenceExtensions
{
///
/// Invokes the specified JavaScript function synchronously.
///
/// The .
/// An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function someScope.someFunction on the target instance.
/// JSON-serializable arguments.
public static void InvokeVoid(this IJSInProcessObjectReference jsObjectReference, string identifier, params object?[] args)
{
if (jsObjectReference == null)
{
throw new ArgumentNullException(nameof(jsObjectReference));
}
jsObjectReference.Invoke