Activities of "jfistelmann"

Sure, I'll close and refund.

here are samples: https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver

Data not coming was expected. I was hoping for an exception though. So, if I interpret this correctly:

Your blob name is correct, else it could not get it. But for some reason the stream is not returning any useful data. Must have something gone wrong with the upload I think. If this is a one-time-issue, is re-uploading a possible solution for you?

If so, maybe add some validation code that after an upload you try to get the stream -> if it's null like in this specific case, throw an exception to communicate that something has gone wrong

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

Showing 41 to 50 of 155 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30