Class VenflowConfiguration
Contains methods to globally set the configuration of Venflow.
Namespace: Venflow
Assembly: Venflow.dll
Syntax
public static class VenflowConfiguration : object
Properties
| Improve this Doc View SourceDynamicCacheExpirationTime
Determines the expiration duration time of the underlying SQL Materializer Cache in seconds, defaults to 5 minutes.
Declaration
public static long DynamicCacheExpirationTime { get; }
Property Value
Type | Description |
---|---|
Int64 |
Remarks
Venflow uses the SQL used in queries to map a materializer to this specific query. This is faster, than using the returned columns and used relations as a cache key. If a query with the executed SQL won't be called again within the next DynamicCacheExpirationTime, it will be removed from the cache. However do note, that the materializer itself will not be removed from the cache.
ShouldUseDeepValidation
Determines whether or not Venflow will perform more extensive validation through out its usage. This setting will be set to true automatically, if you are in DEBUG, otherwise false.
Declaration
public static bool ShouldUseDeepValidation { get; }
Property Value
Type | Description |
---|---|
Boolean |
ThrowLoggedExceptions
Determines whether or not Venflow will propagate exceptions to the caller of a command, if the exception is being logged. Defaults to true.
Declaration
public static bool ThrowLoggedExceptions { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceSetDynamicCacheExpirationTime(Int64)
Sets the value of the DynamicCacheExpirationTime property.
Declaration
public static void SetDynamicCacheExpirationTime(long expirationTime)
Parameters
Type | Name | Description |
---|---|---|
Int64 | expirationTime | The expiration duration time in seconds. |
SetDynamicCacheExpirationTime(TimeSpan)
Sets the value of the DynamicCacheExpirationTime property.
Declaration
public static void SetDynamicCacheExpirationTime(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeSpan | The expiration duration time. |
UseDeepValidation(Boolean)
Changes the value of the ShouldUseDeepValidation property.
Declaration
public static void UseDeepValidation(bool validation)
Parameters
Type | Name | Description |
---|---|---|
Boolean | validation | Determines if Venflow should use deep validation or not. |