New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fluent config types to CSLA #966
Comments
Also add an extension method for ASP.NET Core as per this doc. https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.1 |
@rockfordlhotka Example (just a few of them):
Beside fluent interface, existing configuration mechanism implemented in the .net core can be used. |
Yes, it should. A couple versions ago I switched everything inside the framework to use So if you are running on .NET Framework then you get the legacy behavior from app.config/web.config unchanged. I didn't implement any of the new behaviors from .NET Core, as I didn't have time - but that should absolutely happen! Not just for appsettings.json, but the higher level abstractions, because .NET Core's config subsystem is smart enough to pull from ENV variables or other locations common in cloud scenarios (where config files are a bad idea in general). |
@itgoran - interested in helping? |
@rockfordlhotka |
@itgoran wonderful! The next steps are
|
…atter config value is used.
Need to clean up some of the method names, especially in the Also, the configuration sub-types for data/dataportal/security/serialization should be attached to the base config type by extension methods, not as explicit methods. Using extension methods allows other/future subareas of CSLA to add themselves to the fluent config API. |
…Configuration type.
…be more concise
Closes #967 * #967 Load configuration from appsettings.json Load configuration for csla using 'csla' section from appsettings.json file. Add tests for testing configurations. * #967 Reset global conf after tests * Update to reflect v4.9 projects and directives * Update CompilerDirectives.md * #961 Move implementation of Dashboard to new branch (old branch was based on wrong base) * #961 Fix configuration reset issues with cached dashboard object * #966 CslaConfiguration methods need to return ICslaConfiguration * #961 Maintain timer state on a per-request basis via ClientContext * #966 Add missing using statements * #966 Fix issues where not all settings were being reset properly * Refine the tests excluded from Live Testing * Fix incorrect namespace * Fix name conflict * #961 Implement IDisposable and properly dispose of timers * #961 Change tests to use async Task and Task.Delay * #961 Change timer settings * #961 Ignore tests that pass except on Appveyor * Update to reflect v4.9 projects and directives * #993 Implement SaveAndMergeAsync methods * #995 Add DefaultProxy overload to allow Type to be passed * #967 Configurations are written into AppSettings All configurations are written into ConfigurationManager.AppSettings Add clean context before and after tests
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It would be easier to configure CSLA if we had a set of fluent configuration types in
Csla.Configuration
, following the model of config types used in ASP.NET Core and other scenarios.Something like
The text was updated successfully, but these errors were encountered: