CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. More...
 
CslaOptions RegisterContextManager< T > ()
 Registers a specific ApplicationContext manager service, overriding the default service registration. More...
 
CslaOptions UseReflectionFallback (bool value)
 Sets a value indicating whether CSLA should fallback to using reflection instead of System.Linq.Expressions (true, default). More...
 
CslaOptions PropertyChangedMode (ApplicationContext.PropertyChangedModes mode)
 Sets a value specifying how CSLA .NET should raise PropertyChanged events. More...
 
CslaOptions VersionRoutingTag (string version)
 Sets a value representing the application version for use in server-side data portal routing. More...
 
CslaOptions RegisterPropertyInfoFactory< T > ()
 Sets the factory type that creates PropertyInfo objects. More...
 

Properties

IServiceCollection Services [get]
 Gets the current service collection. More...
 

Detailed Description

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

Definition at line 17 of file CslaOptions.cs.

Constructor & Destructor Documentation

◆ CslaOptions()

Csla.Configuration.CslaOptions.CslaOptions ( IServiceCollection  services)

Creates an instance of the type.

Parameters
servicesService collection

Definition at line 28 of file CslaOptions.cs.

Member Function Documentation

◆ PropertyChangedMode()

CslaOptions Csla.Configuration.CslaOptions.PropertyChangedMode ( ApplicationContext.PropertyChangedModes  mode)

Sets a value specifying how CSLA .NET should raise PropertyChanged events.

Parameters
modeProperty changed mode

Definition at line 64 of file CslaOptions.cs.

◆ RegisterContextManager< T >()

CslaOptions Csla.Configuration.CslaOptions.RegisterContextManager< T > ( )

Registers a specific ApplicationContext manager service, overriding the default service registration.

Template Parameters
TIContextManager implementation type.
Returns
Type Constraints
T :IContextManager 

Definition at line 40 of file CslaOptions.cs.

◆ RegisterPropertyInfoFactory< T >()

CslaOptions Csla.Configuration.CslaOptions.RegisterPropertyInfoFactory< T > ( )

Sets the factory type that creates PropertyInfo objects.

Type Constraints
T :IPropertyInfoFactory 

Definition at line 97 of file CslaOptions.cs.

◆ UseReflectionFallback()

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

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

Parameters
valueValue

Definition at line 53 of file CslaOptions.cs.

◆ VersionRoutingTag()

CslaOptions Csla.Configuration.CslaOptions.VersionRoutingTag ( string  version)

Sets a value representing the application version for use in server-side data portal routing.

Parameters
versionApplication version used to create data portal routing tag (can not contain '-').

If this value is set then you must use the .NET Core server-side Http data portal endpoint as a router so the request can be routed to another app server that is running the correct version of the application's assemblies.

Definition at line 85 of file CslaOptions.cs.

Property Documentation

◆ Services

IServiceCollection Csla.Configuration.CslaOptions.Services
get

Gets the current service collection.

Definition at line 22 of file CslaOptions.cs.