CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Configuration.CslaOptions Class Reference

Use this type to configure the settings for CSLA .NET. More...

Public Member Functions

 CslaOptions (IServiceCollection services)
 Creates an instance of the type.
CslaOptions UseContextManager< T > ()
 Sets the type for the IContextManager to be used by ApplicationContext.
CslaOptions UseUnhandledAsyncRuleExceptionHandler< T > ()
 Sets the type for the IUnhandledAsyncRuleExceptionHandler to be used.
CslaOptions UseReflectionFallback (bool value)
 Sets a value indicating whether CSLA should fallback to using reflection instead of System.Linq.Expressions (true, default).
CslaOptions RegisterPropertyInfoFactory<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T > ()
 Sets the factory type that creates PropertyInfo objects.
CslaOptions ScanForDataAnnotations (bool flag)
 Configures the scanning for data annotations based on the provided flag.

Properties

IServiceCollection Services [get]
 Gets a reference to the current services collection.
Type? ContextManagerType [get]
 Gets the type for the IContextManager used by ApplicationContext.
Type UnhandledAsyncRuleExceptionHandlerType = typeof(DontObserveUnhandledAsyncRuleExceptionHandler) [get]
 Gets the type used for the IUnhandledAsyncRuleExceptionHandler.
int DefaultWaitForIdleTimeoutInSeconds = 90 [get, set]
 Gets or sets the default timeout in seconds for the WaitForIdle method.
bool ScanDataAnnotations = true [get]
 Indicates whether the data annotations scan is enabled.
SerializationOptions SerializationOptions [get]
 Gets the SerializationOptions instance.
DataOptions DataOptions = new() [get]
 Gets the DataOptions instance.
BindingOptions BindingOptions = new() [get]
 Gets the DataOptions instance.

Detailed Description

Use this type to configure the settings for CSLA .NET.

Constructor & Destructor Documentation

◆ CslaOptions()

Csla.Configuration.CslaOptions.CslaOptions ( IServiceCollection services)
inline

Creates an instance of the type.

Parameters
servicesServices collection
Exceptions
ArgumentNullExceptionservices is null.

Member Function Documentation

◆ RegisterPropertyInfoFactory<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T >()

CslaOptions Csla.Configuration.CslaOptions.RegisterPropertyInfoFactory<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T > ( )
inline

Sets the factory type that creates PropertyInfo objects.

Type Constraints
T :IPropertyInfoFactory 

◆ ScanForDataAnnotations()

CslaOptions Csla.Configuration.CslaOptions.ScanForDataAnnotations ( bool flag)
inline

Configures the scanning for data annotations based on the provided flag.

Parameters
flagTrue to scan for data annotations, false to disable scanning. (default: true)
Returns
Returns the current instance of CslaOptions.

◆ UseContextManager< T >()

CslaOptions Csla.Configuration.CslaOptions.UseContextManager< T > ( )
inline

Sets the type for the IContextManager to be used by ApplicationContext.

Type Constraints
T :IContextManager 

◆ UseReflectionFallback()

CslaOptions Csla.Configuration.CslaOptions.UseReflectionFallback ( bool value)
inline

Sets a value indicating whether CSLA should fallback to using reflection instead of System.Linq.Expressions (true, default).

Parameters
valueValue

◆ UseUnhandledAsyncRuleExceptionHandler< T >()

CslaOptions Csla.Configuration.CslaOptions.UseUnhandledAsyncRuleExceptionHandler< T > ( )
inline

Sets the type for the IUnhandledAsyncRuleExceptionHandler to be used.

Template Parameters
TThe type to register for IUnhandledAsyncRuleExceptionHandler.
Returns
This instance.
Type Constraints
T :IUnhandledAsyncRuleExceptionHandler 

Property Documentation

◆ BindingOptions

BindingOptions Csla.Configuration.CslaOptions.BindingOptions = new()
get

Gets the DataOptions instance.

◆ ContextManagerType

Type? Csla.Configuration.CslaOptions.ContextManagerType
get

Gets the type for the IContextManager used by ApplicationContext.

◆ DataOptions

DataOptions Csla.Configuration.CslaOptions.DataOptions = new()
get

Gets the DataOptions instance.

◆ DefaultWaitForIdleTimeoutInSeconds

int Csla.Configuration.CslaOptions.DefaultWaitForIdleTimeoutInSeconds = 90
getset

Gets or sets the default timeout in seconds for the WaitForIdle method.

◆ ScanDataAnnotations

bool Csla.Configuration.CslaOptions.ScanDataAnnotations = true
get

Indicates whether the data annotations scan is enabled.

◆ SerializationOptions

SerializationOptions Csla.Configuration.CslaOptions.SerializationOptions
get

Gets the SerializationOptions instance.

◆ Services

IServiceCollection Csla.Configuration.CslaOptions.Services
get

Gets a reference to the current services collection.

◆ UnhandledAsyncRuleExceptionHandlerType

Type Csla.Configuration.CslaOptions.UnhandledAsyncRuleExceptionHandlerType = typeof(DontObserveUnhandledAsyncRuleExceptionHandler)
get

Gets the type used for the IUnhandledAsyncRuleExceptionHandler.


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