cessor : IAsyncDisposable
{
    ...
    public async Task&lt;T&gt; GetValueAsync&lt;T&gt;(string collectionName, int id)
    {
        await WaitForReference();
        var result = await _accessorJsRef.Value.InvokeAsync&lt;T&gt;("get", collectionName, id);

        return result;
    }

    public async Task SetValueAsync&lt;T&gt;(string collectionName, T value)
    {
        await WaitForReference();
        await _accessorJsRef.Value.InvokeVoidAsync("set", collectionName, value);
    }
}</pre>
<hr class=