16 public static class CslaConfigurationExtension
21 public static CslaConfiguration Configure(
this ICslaConfiguration config)
23 return new CslaConfiguration();
40#if !NETSTANDARD2_0 && !NET5_0
104 ConfigurationManager.AppSettings[
"CslaPropertyChangedMode"] = mode.ToString();
125 if (!
string.IsNullOrWhiteSpace(version))
126 if (version.Contains(
"-") || version.Contains(
"/"))
127 throw new ArgumentException(
"VersionRoutingTag");
128 ConfigurationManager.AppSettings[
"CslaVersionRoutingTag"] = version;
138 ApplicationContext.
RuleSet = ruleSet;
148 ConfigurationManager.AppSettings[
"CslaPropertyInfoFactory"] = typeName;
156#pragma warning disable CS3001
158#pragma warning restore CS3001
169 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
Use this type to configure the settings for CSLA .NET.
CslaConfiguration SettingsChanged()
Resets any ApplicationContext settings so they re-read their configuration from AppSettings on next u...
CslaConfiguration ContextManager(Type contextManagerType)
Sets the context manager type.
CslaConfiguration VersionRoutingTag(string version)
Sets a value representing the application version for use in server-side data portal routing.
CslaConfiguration UseReflectionFallback(bool value)
Sets a value indicating whether CSLA should fallback to using reflection instead of System....
CslaConfiguration ContextManager(IContextManager contextManager)
Sets the context manager.
CslaConfiguration PropertyChangedMode(ApplicationContext.PropertyChangedModes mode)
Sets a value specifying how CSLA .NET should raise PropertyChanged events.
CslaConfiguration DefaultServiceProvider(IServiceProvider defaultServiceProvider)
Sets the default service provider which Csla will use.
CslaConfiguration RuleSet(string ruleSet)
Sets the RuleSet name to use for static HasPermission calls.
CslaConfiguration WebContextManager(IContextManager contextManager)
Sets the web context manager.
CslaConfiguration PropertyInfoFactory(string typeName)
Sets the factory type that creates PropertyInfo objects.
static CslaConfiguration Configure()
Gets an instance of the configuration root type.
Use this type to configure the settings for CSLA .NET.
Defines the interface for an application context manager type.