Skip to content
Discussion options

You must be logged in to vote

Hi @AnsisMalins,

I could use some examples of basic usage.

Sorry about that. We haven't had a chance to put a FastProxy tutorial together.

In particular, what counts as a fast object?

A fast host object is simply one that implements IV8FastHostObject. You could implement that interface yourself, but the API provides several helpers to simplify things while retaining flexibility.

Here's a basic example. Consider this class:

public class Foo {
    public long Value { get; set; }
    public double GetScaledValue(double scaleFactor) => Value * scaleFactor;
}

Here's a version of the same class with FastProxy support:

public class FastFoo : V8FastHostObject<FastFoo> {
    public long Value { 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnsisMalins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants