class ResourceGenerator<T>

in global :: Sandbox . Resources

A resource generator targetting a specific type


public bool UseMemoryCache { get; }

If true then the generation will avoid creating duplicate resources by checking hash codes of previously generated resources and re-using them if possible.

public T FindOrCreate( ResourceGenerator.Options options )

If we generated this before, then find the current cache'd value. If not, then generate a new one.

public ValueTask<T> FindOrCreateAsync( ResourceGenerator.Options options, CancellationToken token )

If we generated this before, then find the current cache'd value. If not, then generate a new one.

public T Create( ResourceGenerator.Options options )

Create the resource blocking

public ValueTask<T> CreateAsync( ResourceGenerator.Options options, CancellationToken token )

Create the resource asyncronously

public T FindCached( )

😔 No documentation found.

public void AddToCache( T val )

😔 No documentation found.

public bool CacheToDisk { get; }

😔 No documentation found.

public void Deserialize( JsonObject obj )

😔 No documentation found.

public ulong GetHash( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.