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.
CslaDataPortalConfigurationOptions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file=" public class CslaDataPortalConfigurationOptions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Use this type to configure the settings for CSLA .NET</summary>
7//-----------------------------------------------------------------------
9using Csla.Server;
10
11namespace Csla.Configuration
12{
13
19 {
31 public string AuthenticationType
32 {
33 get { return ConfigurationManager.AppSettings["CslaAuthentication"]; }
34 set { ConfigurationManager.AppSettings["CslaAuthentication"] = value; }
35 }
36
43 {
44 get
45 {
46 if (ConfigurationManager.AppSettings["CslaAutoCloneOnUpdate"] == null)
47 return false;
48 else
49 return bool.Parse(ConfigurationManager.AppSettings["CslaAutoCloneOnUpdate"]);
50 }
51 set
52 {
53 ConfigurationManager.AppSettings["CslaAutoCloneOnUpdate"] = value.ToString();
54 }
55 }
56
60 public string Activator
61 {
62 get { return ConfigurationManager.AppSettings["CslaDataPortalActivator"]; }
63 set { ConfigurationManager.AppSettings["CslaDataPortalActivator"] = value; }
64 }
65
69 public string ExceptionInspector
70 {
71 get { return ConfigurationManager.AppSettings["CslaDataPortalExceptionInspector"]; }
72 set { ConfigurationManager.AppSettings["CslaDataPortalExceptionInspector"] = value; }
73 }
74
80 {
81 get { return ConfigurationManager.AppSettings["CslaAuthorizationProvider"]; }
82 set { ConfigurationManager.AppSettings["CslaAuthorizationProvider"] = value; }
83 }
84
91 public string Interceptor
92 {
93 get { return ConfigurationManager.AppSettings["CslaDataPortalInterceptor"]; }
94 set { ConfigurationManager.AppSettings["CslaDataPortalInterceptor"] = value; }
95 }
96
100 public string Proxy
101 {
102 get { return ConfigurationManager.AppSettings["CslaDataPortalProxy"]; }
103 set { ConfigurationManager.AppSettings["CslaDataPortalProxy"] = value; }
104 }
105
112 public string ProxyFactory
113 {
114 get { return ConfigurationManager.AppSettings["CslaDataPortalProxyFactory"]; }
115 set { ConfigurationManager.AppSettings["CslaDataPortalProxyFactory"] = value; }
116 }
117
125 {
126 get
127 {
128 if (ConfigurationManager.AppSettings["CslaDataPortalReturnObjectOnException"] == null)
129 return false;
130 else
131 return bool.Parse(ConfigurationManager.AppSettings["CslaDataPortalReturnObjectOnException"]);
132 }
133 set { Csla.ApplicationContext.DataPortalReturnObjectOnException = value; }
134 }
135
140 public string PortalUrl
141 {
142 get { return ConfigurationManager.AppSettings["CslaDataPortalUrl"]; }
143 set { ConfigurationManager.AppSettings["CslaDataPortalUrl"] = value; }
144 }
145
153 {
154 get { return ConfigurationManager.AppSettings["CslaObjectFactoryLoader"]; }
155 set { ConfigurationManager.AppSettings["CslaObjectFactoryLoader"] = value; }
156 }
157
166 {
167 get
168 {
169 if (ConfigurationManager.AppSettings["CslaFlowSynchronizationContext"] == null)
170 return false;
171 else
172 return bool.Parse(ConfigurationManager.AppSettings["CslaFlowSynchronizationContext"]);
173 }
174 set { ConfigurationManager.AppSettings["CslaFlowSynchronizationContext"] = value.ToString(); }
175 }
176 }
177}
Use this type to configure the settings for the CSLA .NET data portal using dot net core
string Proxy
Gets or sets the default data portal proxy type
string Activator
Gets or sets an instance of the IDataPortalActivator provider.
string AuthenticationType
Returns the authentication type being used by the CSLA .NET framework.
string Interceptor
Gets or sets the type of interceptor invoked by the data portal for pre- and post-processing of each ...
bool FlowSynchronizationContext
Gets or sets a value indicating whether any synchronization context should be flowed to child tasks b...
bool ReturnObjectOnException
Gets or sets a value indicating whether the server-side business object should be returned to the cli...
string AuthorizationProvider
Sets the type name to be used for server-side data portal authorization.
string ExceptionInspector
Gets or sets the fully qualified name of the ExceptionInspector class.
bool AutoCloneOnUpdate
Gets a value indicating whether objects should be automatically cloned by the data portal Update()met...
Class containing the default implementation for the FactoryLoader delegate used by the data portal ho...