Hi, how can I configure log4net in Abp Core 5.3.0 to reload configuration when log4net.config change?
I've tried the old way but doesn't works.
<appSettings>
<add key="log4net.Config" value="log4net.config"/>
<add key="log4net.Config.Watch" value="True"/>
</appSettings>
It is possible?
Thanks
I found It !!
After moving the xml localization file to different namespace that doesn't start with the same name, all works fine. I guess localizations are added by looking root namespace with a "start with" pattern.
root ---Localization ------Extensions -----------Security.xml ------Sources -----------Framework.xml
Problem resolved.
Hi, My module has his own xml localization. I need to extend some default message of Abp, but on startup I receive this error:
FATAL 2018-05-11 17:20:40,450 [1 ] Abp.AbpBootstrapper - Abp.AbpInitializationException: Security source contains more than one dictionary for the culture: en
at Abp.Localization.Dictionaries.Xml.XmlEmbeddedFileLocalizationDictionaryProvider.Initialize(String sourceName)
at Abp.Localization.LocalizationManager.InitializeSources()
at Abp.AbpKernelModule.PostInitialize()
at System.Collections.Generic.List1.ForEach(Action
1 action)
at Abp.AbpBootstrapper.Initialize()
This is my code
public static class SecurityLocalizationConfigurer
{
public static void Configure(ILocalizationConfiguration localizationConfiguration)
{
localizationConfiguration.Sources.Add(
new DictionaryBasedLocalizationSource(
DomainConsts.LocalizationSourceName,
new XmlEmbeddedFileLocalizationDictionaryProvider(
Assembly.GetExecutingAssembly(),
"Uno.Security.Core.Localization"
)
)
);
localizationConfiguration.Sources.Extensions.Add(
new LocalizationSourceExtensionInfo(FrameworkConsts.LocalizationSourceName,
new XmlEmbeddedFileLocalizationDictionaryProvider(
Assembly.GetExecutingAssembly(),
"Uno.Security.Core.LocalizationExtensions"
)
)
);
}
}
and the folder structure is: root ---Localization ------Security.xml ---LocalizationExtensions ------Framework.xml
Note that localization works fine for my security.xml. When I add the extensions, the application hangs. How Can I override default message and also manage my own localization on same project?
Thanks Ivano
Hi, even if you set AbpZeroSettingNames.UserManagement.UserLockOut.IsEnabled to false in Host or Tenant settings, when a new user is created, the property IsLockoutEnabled is always true.
Subsequently, if you update the user, IsLockoutEnabled is set to true or false, based on the UI check box.
Version 5.3.0, Core & Angular.
Is by design or an Asp.Net Identity problem?
Thanks, Ivano
I' sorry. Isn't simple our scenario. To be more practical, how can I add a filter to EFCore?
From docs: ORM Integrations Data filtering for pre-defined filters works for NHibernate, Entity Framework 6.x and Entity Framework Core. Currently, you can only define custom filters for Entity Framework 6.x.
Yes, I mean "TenantId=null".
What I would like to know is what you would do to implement this scenario. Some way that is compliant with AspNetBoilerplat. I don't want loose all the advantages provided by core version, but extend it.
Hi,
We are trying to extend the Tenant separation logic adding Organization units (with Single Deployment - Single Database scenario).
The main idea is that the data's owner can be Host, Tenant or Organization Unit. Host, Tenant and Organization Unit have a hierarchical relationship.
Host has data that can be viewed by every Tenants. Tentant has data that can be viewed by his Organization Units. OrganizationUnit has data that can be viewed only by itself.
Every user belongs to one Host, one Tenant and many Organization Units (but only one at the same time). So, a logged user, has always a Host, a TenantId and a OrganizatinUnitId.
When data are retrived from repository they should be automatic filtered by current Host, current TenantId and current OrganizationUnitId. But there shuold be also a standard way to get entities including parents or children so that every developer does not have to rewrite the search logics In that manner normal user can show in a readonly mode Host's data, Tenant's data and , in write mode, own data. Same logic per Tenant users and Host users.
I guess that a new IMayHaveOrganizationUnit can help but the main point is that all has to be provided by the framework itself.
Do you have some suggestions about ?
Thank you
Good. Now I have a range of possibilities.
Ok Thank you @aaron.
Yes you are right but What I mean is that when you release a new version I need only replace the donwloaded template code with the new one (as I've done succesfully many times). If I begin to modify the template downloaded, the process is more dangerous because I can lost my changes.
I have to care about only to my plugins and adeguate those to the new improovements. In this case instead there is a breaking change.
I hope now is clear the purpose of my question.
Thank you
Ok , but this requires a change to your code that I prefer don't touch if possible. We are developing new feature through plugins.
No other way?