CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Configuration.CslaConfiguration Class Reference

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

Inheritance diagram for Csla.Configuration.CslaConfiguration:
Csla.Configuration.ICslaConfiguration

Public Member Functions

CslaConfiguration WebContextManager (IContextManager contextManager)
 Sets the web context manager. More...
 
CslaConfiguration ContextManager (IContextManager contextManager)
 Sets the context manager. More...
 
CslaConfiguration ContextManager (Type contextManagerType)
 Sets the context manager type. More...
 
CslaConfiguration UseReflectionFallback (bool value)
 Sets a value indicating whether CSLA should fallback to using reflection instead of System.Linq.Expressions (true, default). More...
 
CslaConfiguration PropertyChangedMode (ApplicationContext.PropertyChangedModes mode)
 Sets a value specifying how CSLA .NET should raise PropertyChanged events. More...
 
CslaConfiguration VersionRoutingTag (string version)
 Sets a value representing the application version for use in server-side data portal routing. More...
 
CslaConfiguration RuleSet (string ruleSet)
 Sets the RuleSet name to use for static HasPermission calls. More...
 
CslaConfiguration PropertyInfoFactory (string typeName)
 Sets the factory type that creates PropertyInfo objects. More...
 
CslaConfiguration DefaultServiceProvider (IServiceProvider defaultServiceProvider)
 Sets the default service provider which Csla will use. More...
 
CslaConfiguration SettingsChanged ()
 Resets any ApplicationContext settings so they re-read their configuration from AppSettings on next use. More...
 

Static Public Member Functions

static CslaConfiguration Configure ()
 Gets an instance of the configuration root type. More...
 

Detailed Description

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

Definition at line 30 of file CslaConfiguration.cs.

Member Function Documentation

◆ Configure()

static CslaConfiguration Csla.Configuration.CslaConfiguration.Configure ( )
static

Gets an instance of the configuration root type.

Definition at line 35 of file CslaConfiguration.cs.

◆ ContextManager() [1/2]

CslaConfiguration Csla.Configuration.CslaConfiguration.ContextManager ( IContextManager  contextManager)

Sets the context manager.

Parameters
contextManagerContext manager instance.
Returns
ContextManager normally defaults to the correct value. Override for non-standard or custom behaviors.

Definition at line 65 of file CslaConfiguration.cs.

◆ ContextManager() [2/2]

CslaConfiguration Csla.Configuration.CslaConfiguration.ContextManager ( Type  contextManagerType)

Sets the context manager type.

Parameters
contextManagerTypeContext manager type.
Returns
ContextManager normally defaults to the correct value. Override for non-standard or custom behaviors.

Definition at line 79 of file CslaConfiguration.cs.

◆ DefaultServiceProvider()

CslaConfiguration Csla.Configuration.CslaConfiguration.DefaultServiceProvider ( IServiceProvider  defaultServiceProvider)

Sets the default service provider which Csla will use.

Parameters
defaultServiceProviderIServiceProvider instance

Definition at line 157 of file CslaConfiguration.cs.

◆ PropertyChangedMode()

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

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

Parameters
modeProperty changed mode

Definition at line 102 of file CslaConfiguration.cs.

◆ PropertyInfoFactory()

CslaConfiguration Csla.Configuration.CslaConfiguration.PropertyInfoFactory ( string  typeName)

Sets the factory type that creates PropertyInfo objects.

Parameters
typeNameFactory type name

Definition at line 146 of file CslaConfiguration.cs.

◆ RuleSet()

CslaConfiguration Csla.Configuration.CslaConfiguration.RuleSet ( string  ruleSet)

Sets the RuleSet name to use for static HasPermission calls.

Parameters
ruleSetThe rule set.

Definition at line 136 of file CslaConfiguration.cs.

◆ SettingsChanged()

CslaConfiguration Csla.Configuration.CslaConfiguration.SettingsChanged ( )

Resets any ApplicationContext settings so they re-read their configuration from AppSettings on next use.

Definition at line 170 of file CslaConfiguration.cs.

◆ UseReflectionFallback()

CslaConfiguration Csla.Configuration.CslaConfiguration.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 91 of file CslaConfiguration.cs.

◆ VersionRoutingTag()

CslaConfiguration Csla.Configuration.CslaConfiguration.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 123 of file CslaConfiguration.cs.

◆ WebContextManager()

CslaConfiguration Csla.Configuration.CslaConfiguration.WebContextManager ( IContextManager  contextManager)

Sets the web context manager.

Parameters
contextManagerWeb context manager instance

Will use default WebContextManager. Only need to set for non-default WebContextManager.

Returns

Definition at line 50 of file CslaConfiguration.cs.