C# Runtime  0.8
Public Member Functions | List of all members
alfa.rt.RuntimeContext Interface Reference

Context object passed with BuilderConfig to manipulate runtime behaviour. More...

Inherited by alfa.rt.DefaultRuntimeContext.

Public Member Functions

bool shouldValidateOnBuild ()
 Should valiation be performed before Build() method starts. More...
 
bool shouldCloneCollectionsOnBuild ()
 Should dictionary, set, list values be cloned on build to guarantee immutablity. More...
 
byte[] encrypt (byte[] inputData)
 Encrypt the specified inputData. More...
 
byte[] decrypt (byte[] inputData)
 Decrypt the specified inputData. More...
 
byte[] compress (byte[] bytes)
 Compress the specified bytes. More...
 
byte[] uncompress (byte[] compressedBytes)
 Uncompress the specified compressedBytes. More...
 

Detailed Description

Context object passed with BuilderConfig to manipulate runtime behaviour.

Member Function Documentation

◆ compress()

byte [] alfa.rt.RuntimeContext.compress ( byte[]  bytes)

Compress the specified bytes.

Returns
The compressed data.
Parameters
bytesUncompressed data.

◆ decrypt()

byte [] alfa.rt.RuntimeContext.decrypt ( byte[]  inputData)

Decrypt the specified inputData.

Returns
The decrypted data.
Parameters
inputDataEncrypted data.

◆ encrypt()

byte [] alfa.rt.RuntimeContext.encrypt ( byte[]  inputData)

Encrypt the specified inputData.

Returns
The encrypt data.
Parameters
inputDataUnencrypted data.

◆ shouldCloneCollectionsOnBuild()

bool alfa.rt.RuntimeContext.shouldCloneCollectionsOnBuild ( )

Should dictionary, set, list values be cloned on build to guarantee immutablity.

Returns
true, if clone collections on build was alloed, false otherwise.

◆ shouldValidateOnBuild()

bool alfa.rt.RuntimeContext.shouldValidateOnBuild ( )

Should valiation be performed before Build() method starts.

Returns
true, if validate on build was allowed, false otherwise.

◆ uncompress()

byte [] alfa.rt.RuntimeContext.uncompress ( byte[]  compressedBytes)

Uncompress the specified compressedBytes.

Returns
The uncompressed data.
Parameters
compressedBytesCompressed bytes

The documentation for this interface was generated from the following file: