Hi, you can define your custom domain tenant resolver related code in ..Web.Core project.
For switching from host account to tenant account, did you use the method here? <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/f72d4bf9ced778e06265f1c415a8553b10cbaf3d/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Controllers/AccountController.cs#L804">https://github.com/aspnetzero/aspnet-ze ... er.cs#L804</a>
Hi, the PR mentioned in the issue refer to Pull-Request on github. Since aspnetboilerplate is open source, anyone can submit a pull request to include the localization for their language if necessary.
You can refer to the following for registration to abp.dynamicScriptInitialized <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/test/aspnet-core-demo/AbpAspNetCoreDemo/wwwroot/Abp/Framework/scripts/libs/abp.sweet-alert.js#L104-107">https://github.com/aspnetboilerplate/as ... s#L104-107</a>
Hi, please share your the code for the method where UserFriendlyException is thrown.
Also, Ajax response for the method as well.
Hi, can you provide the version of your AspNetCore as well?
Do you have Windows hosting bundle installed along with .net core runtime?
Please share the full error stack trace and code for your plug-in module
Do you mean PostInitialize of AbpModule for PostBuild ? Or you are referring to Visual Studio PostBuild event.
It's still possible to add in your filters within AbpModule loaded via plug-in.
You can try to resolve MvcOption in your module PostInitialize(), and add your filters using _mvcOptions.Filters.AddService(type of(Your filter)), however this require further analysis and test if it works or not.
You can access the result from the service call using the following code.
_activitiesService.createOrEdit(activity)
.done(function(result){
// handle result from the service
});
You can follow #4608@48ad01a2-9501-4a6a-897e-7675b2040d4b to include Id in the result.
The code snippet is to add in to your main project.
The purpose of it is to load all the filters that are declared in the plug-in module class library.
You can register your filters with MvcOptions.Filters
See <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp.AspNetCore/AspNetCore/Mvc/AbpMvcOptionsExtensions.cs#L28-L36">https://github.com/aspnetboilerplate/as ... cs#L28-L36</a>
Looking at similar issue at <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3302">https://github.com/aspnetboilerplate/as ... ssues/3302</a>
Assemblies loading at <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/e0ded5d8702f389aa1f5947d3446f16aec845287/src/Abp/PlugIns/FolderPlugInSource.cs#L36-L52">https://github.com/aspnetboilerplate/as ... cs#L36-L52</a>
You can try adding the following code snippets in StartUp.cs of your ..Web.Host or ..Web.Mvc. I have not fully tested out the code yet but it should be somewhere along the line.
services.PostConfigure<MvcOptions>(options =>
{
foreach(var a in new FolderPlugInSource(@"Your Plugin Folder").GetAssemblies())
{
foreach (var type in a.GetTypes())
{
if (type is IFilterMetadata)
{
options.Filters.AddService(type);
}
}
}
});
Similar to the AbpAuthorize mentioned in the post your provided.
Abp does the same thing for auditing as well. Using native filter available in Asp.Net Core Mvc , AbpAuditActionFilter works without Interceptor
See <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/AbpAuditActionFilter.cs">https://github.com/aspnetboilerplate/as ... nFilter.cs</a>
However, abp still has auditing function implemented using IInterceptor.
See <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Auditing/AuditingInterceptor.cs">https://github.com/aspnetboilerplate/as ... rceptor.cs</a>