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.
CslaSecurityConfiguration.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaSecurityConfiguration.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 security</summary>
7//-----------------------------------------------------------------------
8namespace Csla.Configuration
9{
13 public static class CslaSecurityConfigurationExtension
14 {
18 public static CslaSecurityConfiguration Security(this ICslaConfiguration config)
19 {
20 return new CslaSecurityConfiguration();
21 }
22 }
23
28 {
34 {
35 ConfigurationManager.AppSettings["CslaPrincipalCacheSize"] = size.ToString();
36 return this;
37 }
38 }
39}
Use this type to configure the settings for security.
CslaSecurityConfiguration PrincipalCacheMaxCacheSize(int size)
Sets the max size of the PrincipalCache cache.