Class RedbServiceConfigurationBuilder
Builder for convenient RedbService configuration setup
public class RedbServiceConfigurationBuilder
Inheritance
Methods
Configure(Action<RedbServiceConfiguration>)
Apply additional configuration
public RedbServiceConfigurationBuilder Configure(Action<RedbServiceConfiguration> configure)
ForBulkOperations()
Configuration for bulk operations
public RedbServiceConfigurationBuilder ForBulkOperations()
ForDevelopment()
Configuration for development/testing
public RedbServiceConfigurationBuilder ForDevelopment()
ForHighPerformance()
Configuration for high performance
public RedbServiceConfigurationBuilder ForHighPerformance()
ForIntegrationTesting()
Configuration for integration testing
public RedbServiceConfigurationBuilder ForIntegrationTesting()
ForProduction()
Configuration for production (high security)
public RedbServiceConfigurationBuilder ForProduction()
WithAudit(bool, bool)
Configure automatic audit
public RedbServiceConfigurationBuilder WithAudit(bool autoSetModifyDate = true, bool autoRecomputeHash = true)
WithDefaultPermissions(bool, bool, bool)
Configure default permission checks
public RedbServiceConfigurationBuilder WithDefaultPermissions(bool checkOnLoad = false, bool checkOnSave = false, bool checkOnDelete = true)
WithIdResetStrategy(ObjectIdResetStrategy)
Configure ID handling strategy after object deletion
public RedbServiceConfigurationBuilder WithIdResetStrategy(ObjectIdResetStrategy strategy)
WithJsonOptions(Action<JsonSerializationOptions>)
Configure JSON serialization
public RedbServiceConfigurationBuilder WithJsonOptions(Action<JsonSerializationOptions> configure)
WithListCache(bool, int)
Configure list cache
public RedbServiceConfigurationBuilder WithListCache(bool enabled = true, int ttlMinutes = 5)
WithLoadDepth(int, int)
Configure object loading depth
public RedbServiceConfigurationBuilder WithLoadDepth(int defaultDepth = 10, int maxTreeDepth = 50)
WithMetadataCache(bool, int)
Configure metadata caching
public RedbServiceConfigurationBuilder WithMetadataCache(bool enabled = true, int lifetimeMinutes = 30)
WithMissingObjectStrategy(MissingObjectStrategy)
Configure strategy for handling non-existent objects on UPDATE
public RedbServiceConfigurationBuilder WithMissingObjectStrategy(MissingObjectStrategy strategy)
WithoutPermissionChecks()
Disable permission checks (for development/testing)
public RedbServiceConfigurationBuilder WithoutPermissionChecks()
WithoutValidation()
Disable validation (for performance)
public RedbServiceConfigurationBuilder WithoutValidation()
WithPrettyJson()
Enable pretty JSON formatting
public RedbServiceConfigurationBuilder WithPrettyJson()
WithSchemaSync(bool, bool)
Configure schema synchronization behavior
public RedbServiceConfigurationBuilder WithSchemaSync(bool strictDeleteExtra = true, bool autoSyncOnSave = true)
WithStrictSecurity()
Enable strict security (permission checks everywhere)
public RedbServiceConfigurationBuilder WithStrictSecurity()
WithSystemUser(long)
Configure system user ID
public RedbServiceConfigurationBuilder WithSystemUser(long systemUserId)
WithValidation(bool, bool)
Configure validation
public RedbServiceConfigurationBuilder WithValidation(bool schemaValidation = true, bool dataValidation = true)