Class DataLoaderOptions
- Namespace
- GreenDonut
- Assembly
- GreenDonut.dll
An options object to configure the behavior for DataLoader
.
public class DataLoaderOptions
- Inheritance
-
DataLoaderOptions
- Inherited Members
Constructors
DataLoaderOptions()
public DataLoaderOptions()
Properties
Cache
Gets or sets a cache instance to either share a cache instance
across several dataloader or to provide a custom cache
implementation. In case no cache instance is provided, the
dataloader will use the default cache implementation.
The default value is set to null
.
public ITaskCache? Cache { get; set; }
Property Value
Caching
Gets or sets a value indicating whether caching is enabled. The
default value is true
.
public bool Caching { get; set; }
Property Value
DiagnosticEvents
Gets the IDataLoaderDiagnosticEvents to intercept DataLoader events.
public IDataLoaderDiagnosticEvents? DiagnosticEvents { get; set; }
Property Value
MaxBatchSize
Gets or sets the maximum batch size per request. If set to
0
, the request will be not cut into smaller batches. The
default value is set to 0
.
public int MaxBatchSize { get; set; }
Property Value
Methods
Copy()
Creates a new options object that contains all the property values of this instance.
public DataLoaderOptions Copy()
Returns
- DataLoaderOptions
The new options object that contains all the property values of this instance.