Activities of "enisn"

Will abp suite support file uploads fields in generated field (blob fields) ?

No. ABP Suite won't have that feature in v5.0

I can't recommend an exact bundler. You have to chosse one according to your project requirements.

Again, I can not recommend one of them directly but you may want to browse https://dev.to/underscorecode/javascript-bundlers-an-in-depth-comparative-is-webpack-still-the-best-bundler-in-2021-59jk

Hi Enisn, Thanks for the feedback on this. I will try this, but I thought it was bad practice to spool up new httpclients everytime it was needed and instead we should use httpclientfactory? Can I share what I have done so far for this point and get your feedback?

P.S before opening the question I tried for some hours and couldnt get any service back in configure service, always receive the exception

System.ArgumentNullException: 'Value cannot be null. (Parameter 'provider')'

Can you share more code? I can't understand from this line why your ServiceProvider is null

Hi @cxp920

Dynamic Proxy convention is camelCase. Can you try camilatest.books.book.getList({}) instead of camilatest.Books.book.getList({})?

Hi @ChetanKumbhar

You can configure IdentityServer4 for this.

You can use RefreshTokenExpiration parameter to do that operation.

Following section might help: http://docs.identityserver.io/en/latest/topics/refresh_tokens.html?highlight=expire#additional-client-settings

When you created a module with abp cli (abp new AwesomeModule -t module --preview) you'll see a host folder. You can debug projects under host folder. Those projects reference to your module projects.

Firstly Global-Features and Features aren't same thing.

Basically:

  • Features allows to manage features at runtime.
  • But Global-Featuers allows to manage features at development-time. It doesn't allow change features at runtime.

According to this information, If you want to change features at runtime, you have to implement Feature. You should use [RequiresFeature("FeatureName")] attribute over classes or methods. If that feature is not enabled, that method, or entire class won't work.

About DataSeeders, you can inject IFeatureChecker service to your DataSeederContributor and call IsEnabledAsync() method, check if feature is enabled and then do rest of operation.


Also you can use AsyncHelper to execute async actions in ConfigureServices:

var baseAddress = AsyncHelper.RunSync(() => settingManager.GetOrNullForCurrentTenantAsync("BaseAddress"));
httpClient.BaseAddress = new Uri(baseAddress);

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;
});
Showing 431 to 440 of 489 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30