Interface ICodeHashGenerator
CodeHashGenerator interface to make it easier to use it through the Instance.
public interface ICodeHashGenerator
Properties
IsBusy
Indicates if hash generation is currently in process.
bool IsBusy { get; }
Property Value
- bool
LastResult
Stores previously calculated result. Can be null if Generate() wasn't called yet or if it was called but calculation is still in process.
HashGeneratorResult LastResult { get; }
Property Value
- See Also
Methods
Generate(int)
Call to start current runtime code hash generation. Automatically adds instance to the scene if necessary.
ICodeHashGenerator Generate(int maxThreads = 1)
Parameters
maxThreadsintThreads to use while hashing files. Use Environment.ProcessorCount to use all cores.
Returns
GenerateAsync(int)
Awaitable version of Generate(). Allows awaiting for the generation result.
Task<HashGeneratorResult> GenerateAsync(int maxThreads = 1)
Parameters
maxThreadsintThreads to use while hashing files. Use Environment.ProcessorCount to use all cores.
Returns
- Task<HashGeneratorResult>