Attività di "jfistelmann"

Try to do it like described here:

https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host (the blog post that's behind the thing I shared before).

In addition:

You do not need to create a scope, you can just use contexts ServiceProvider.

Do not nest so deep, use early exits to reduce nestings and increase readability.

if (string.isNullOrEmpty(host)
{
    return;
}

something like this?

/* This is just an example test class.
 * Normally, you don't test ABP framework code
 * Only test your custom repository methods.
 */
public class SampleRepositoryTests : FastNFunEntityFrameworkCoreTestBase
{
    private readonly IRepository<IdentityUser, Guid> _appUserRepository;

    public SampleRepositoryTests()
    {
        _appUserRepository = GetRequiredService<IRepository<IdentityUser, Guid>>();
    }

    [Fact]
    public async void ShouldQueryAppUser()
    {
        /* Need to manually start Unit Of Work because
         * FirstOrDefaultAsync should be executed while db connection / context is available.
         */
        await WithUnitOfWorkAsync(async () =>
        {
            //Act
            var adminUser = await _appUserRepository
            .FirstOrDefaultAsync(u => u.UserName == "admin");

            //Assert
            adminUser.ShouldNotBeNull();
        });
    }
}

Yes, I've checked. I used GetOrNull, but the file still didn't come

Please try something without ...OrNull because those calls handle errors.

something like this:

var blobName = blobId.ToString();
var result = await _blobContainer.GetAsync(name: blobName);
return result;

then you should be able to see where things go wrong.

Hey,

may this be what you're looking for?

https://community.abp.io/Videos/extend-tenant-management-and-add-custom-host-to-your-abp-app-lwmi9lr5

That's great, thank you so much and waiting for you blog post.

Here it is: https://chrobyte.de/blogs/default/abp-module-development-and-cross-module-dependencies

Also submitted to abp community, but may take a while until approved and available.

What do your redis logs say?

On what version is your redis and what specifically are you using?

Hey,

you would need to override the following for that: Module: Identity.Pro IOrganizationUnitAppService.GetRolesAsync(..)

and apply your logic

Have you checked the points I described?

Can you please share the complete executing line 3559?

are you parsing the blobId to a string? if yes, please to that in a separate line and carefully compare the output to the expected name.

As you can see here: https://github.com/abpframework/abp/blob/2ab863186791f91edc6ff1f8d520a4979c67d2be/framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/BlobContainerExtensions.cs#L40

it may return null if the names do not match.

To speed things up, you can try to not use the GetOrNull, but Get instead and see where it fails. GetOrNull may return null in a lot of cases, which makes issue tracking somewhat difficult.

Hey,

you can archieve that by overriding and extending the login logic. here's a good starting point: https://stackoverflow.com/a/70124473

After you've done the replacement, you can override methods to fulfill your requirements:

41 - 50 di 152
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11