Activities of "enisn"

Changing CurrentTenant and disabling IMultiTenant filter are ok in dataseeder. That is what we do also actually.


Also we're currently developing a micro-service example with ABP which is eShopOnAbp. It's still under development but we have implemented a background worker for Db Migrations. You may want to review that project.

Hi,

Have you tried to configure your HttpContext in ConfigureServices:

context.Services.AddTransient<HttpClient>(sp =>
{
    // Get services you need.
    var currentTenant = sp.GetService<ICurrentTenant>();
    var settingManager = sp.GetService<ISettingManager>();

    // Create instance of HttpClient
    var httpClient = new HttpClient();
    
    // Make your modifications here
    httpClient.DefaultRequestHeaders.Add("Tenant", currentTenant.Name);

    // Return it to DI Container, It'll inject where you use.
    return httpClient;
});

It's an unexpected behavior. We'll fix it in next release.

So your credit is refunded.

Hi yousef.h85

The version 5.0 hasn't a stable release right now. It targets net 6.0 and it hasn't stable release yet too.

I can't suggest to use pre-release versions on Production.

There is a migration guide you can always follow instructions to upgrade to abp 5.0: https://docs.abp.io/en/abp/5.0/Migration-Guides/Abp-5_0


By the way, My personally suggestion is: If you development lasts more than 2 months you can start with ABP 5.0, stable version will be already released in 2 months.

Shared libraries especially not related with AspNetCore are targetting netstandard. Because they can be used from any platform such as dektop, mobile, IOT runtime and even more.

Those packages will work fine in your .net 5 runtime and any other .net runtimes.

MVC bundling system does not support dynamic imports. If you use a 3rd party library that needs those imports, you need to bundle them together and serve it

Hi @VivekKoppula

Let me know if it happens while running published blazor-server applications

Hi,

You can use .RequireAuthenticated() extension method for MenuItem:

var administration = context.Menu.GetAdministration();

var languagesMenu = administration.FindMenuItem(LanguageManagementMenuNames.GroupName);

var menuItem = new ApplicationMenuItem(
                    "MySubLanguageMenu", 
                    "My Sub Language Menu", 
                    "#")
               .RequireAuthenticated(); // <-- You add this method.

languagesMenu.AddItem(menuItem);

We have published a section on Saas Documentation about it.

https://docs.abp.io/en/commercial/latest/modules/saas#tenant-edition-subscription

***Consts.cs files are not API Controllers and they don't have any endpoints. Proxy generation generates code from swagger.json. So if you expose your consts with a Controller, proxy generation will be able to generate that endpoint.

Showing 431 to 440 of 481 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11