Base solution for your next web application

Activities of "giuseppe.tofani"

Answer

This is not a good solution for me because of circular dependency.

I have aspnetzero projects:

NodriveApp.Application NodriveApp.Application.Shared ... NodriveApp.Web.Core (include my project NodriveApp.NoApplication) ... and my projects (I prefer to not merge my code inside aspnetzero code):

NodriveApp.NoApplication NodriveApp.NoApplication.Shared NodriveApp.NoCore NodriveApp.NoCore.Shared Good solution for me would be replace UserClaimsPrincipalFactory working inside NodriveApp.NoCore .NodriveAppNoCoreModule, for example, with some code like this below (but this doesn't works)

public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(NodriveAppNoCoreModule).GetAssembly());

    Configuration.ReplaceService(typeof(UserClaimsPrincipalFactory), () =>
    {
        IocManager.Register<UserClaimsPrincipalFactory, NoUserClaimsPrincipalFactory>();
    });
}

Is this possible ? Can I use this strategy to separate my code from aspnetzero code ?

If I use your solution I have to include NodriveApp.NoCore inside NodriveApp.Core and this causes circular dependency.

Many thanks. Giuseppe Tofani

Question

Hi, I've extended UserClaimsPrincipalFactory and now I want to register this service inside my CoreModule initialize method.

How can I replace service registered by
.AddAbpUserClaimsPrincipalFactory<UserClaimsPrincipalFactory>() ?

Thanks. Giuseppe Tofani

It's possible to replace user primary key (bigint) with a guid ?

Showing 1 to 3 of 3 entries