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.
CslaConfigurationOptions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaConfigurationOptions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Contains configuration options which can be loaded </summary>
7//-----------------------------------------------------------------------
8
9using Csla.Security;
11using System;
12
13namespace Csla.Configuration
14{
20 {
25 public string PropertyChangedMode
26 {
27 get { return ConfigurationManager.AppSettings["CslaPropertyChangedMode"]; }
28 set { ConfigurationManager.AppSettings["CslaPropertyChangedMode"] = value; }
29 }
30
44 public string VersionRoutingTag
45 {
46 get { return ConfigurationManager.AppSettings["CslaVersionRoutingTag"]; }
47 set
48 {
49 if (!string.IsNullOrWhiteSpace(value))
50 if (value.Contains("-") || value.Contains("/"))
51 throw new ArgumentException("valueRoutingToken");
52 ConfigurationManager.AppSettings["CslaVersionRoutingTag"] = value;
53 ApplicationContext.VersionRoutingTag = null;
54 }
55 }
56
60 public string PropertyInfoFactory
61 {
62 get { return ConfigurationManager.AppSettings["CslaPropertyInfoFactory"]; }
63 set
64 {
65 ConfigurationManager.AppSettings["CslaPropertyInfoFactory"] = value;
66 }
67 }
68
75 {
76 get { return ConfigurationManager.AppSettings["CslaSerializationFormatter"]; }
77 set { ConfigurationManager.AppSettings["CslaSerializationFormatter"] = value; }
78 }
79
84 public string Reader
85 {
86 get { return ConfigurationManager.AppSettings["CslaReader"]; }
87 set { ConfigurationManager.AppSettings["CslaReader"] = value; }
88 }
89
96 public string MobileFactoryLoader
97 {
98 get { return ConfigurationManager.AppSettings["CslaMobileFactoryLoader"]; }
99 set { ConfigurationManager.AppSettings["CslaMobileFactoryLoader"] = value; }
100 }
101
109 {
110 get { return ConfigurationManager.AppSettings["CslaObjectFactoryLoader"]; }
111 set { ConfigurationManager.AppSettings["CslaObjectFactoryLoader"] = value; }
112 }
113
118 {
119 get { return ConfigurationManager.AppSettings["CslaDefaultTransactionIsolationLevel"]; }
120 set { ConfigurationManager.AppSettings["CslaDefaultTransactionIsolationLevel"] = value; }
121 }
122
130 {
131 get { return int.Parse(ConfigurationManager.AppSettings["CslaDefaultTransactionTimeoutInSeconds"] ?? "0"); }
132 set { ConfigurationManager.AppSettings["CslaDefaultTransactionTimeoutInSeconds"] = value.ToString(); }
133 }
134
140 {
141 get { return ConfigurationManager.AppSettings["CslaDefaultTransactionAsyncFlowOption"]; }
142 set { ConfigurationManager.AppSettings["CslaDefaultTransactionAsyncFlowOption"] = value.ToString(); }
143 }
144
149 {
150 get
151 {
152 if (ConfigurationManager.AppSettings["CslaPrincipalCacheSize"] != null)
153 {
154 return int.Parse(ConfigurationManager.AppSettings["CslaPrincipalCacheSize"]);
155 }
156
157 return PrincipalCache.MaxCacheSize;
158 }
159
160 set { ConfigurationManager.AppSettings["CslaPrincipalCacheSize"] = value.ToString(); }
161 }
162
167 public string MobileWriter
168 {
169 get { return ConfigurationManager.AppSettings["CslaWriter"]; }
170 set { ConfigurationManager.AppSettings["CslaWriter"] = value; }
171 }
172
177 public string CslaDbProvider
178 {
179 get { return ConfigurationManager.AppSettings["CslaDbProvider"]; }
180 set { ConfigurationManager.AppSettings["CslaDbProvider"] = value; }
181 }
182
187 }
188}
Contains configuration options which can be loaded using dot net core configuration subsystem
string Reader
Sets type of the writer that is used to read data to serialization stream in SerializationFormatterFa...
string SerializationFormatter
Gets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
string PropertyInfoFactory
Sets the factory type that creates PropertyInfo objects.
string MobileWriter
Get an instance of the writer that is used to write data to serialization stream Instance has to impl...
string MobileFactoryLoader
Gets or sets a delegate reference to the method called to create instances of factory objects as requ...
string VersionRoutingTag
Gets or sets a value representing the application version for use in server-side data portal routing.
string ObjectFactoryLoader
Sets the type name of the factor loader used to create server-side instances of business object facto...
string PropertyChangedMode
Gets or sets a value specifying how CSLA .NET should raise PropertyChanged events.
string CslaDbProvider
CslaDbProvider Instance has to implement ICslaWriter.
string DefaultTransactionIsolationLevel
Sets the default transaction isolation level.
string DefaultTransactionAsyncFlowOption
Gets or sets the default transaction async flow option used to create new TransactionScope objects.
int?? DefaultTransactionTimeoutInSeconds
Gets or sets the default transaction timeout in seconds.
Use this type to configure the settings for the CSLA .NET data portal using dot net core
This is the client-side DataPortal.
Definition: DataPortalT.cs:24