Base solution for your next web application

Activities of "herbertmilhomme"

<cite>Chrisk: </cite> Hi There,

When you publish notifications userIds[] is UserIdentifier[]. UserIdentifier is a type you should use, it holds user id and tenant id. There is extension method on user type ToUserIdentifier() that you can use for convenience.

I searched the entire solution for the 1.0 version and there was no

ToUserIdentifier()

Is there a namespace or a file i should be looking for? i was able to fix one cs file... but the more i transfer, the more complex the solution becomes.

Also, the solution i used wasn't a conversion, but merely, i swapped out "user.id" with something that had the UserIdentifier type... like "userIds"

But another cs had "AbpSession.UserId" which i believe would carry the current user logged in, as a value. but the value is a "long?" type (nullable long). i used

Abp.UserIdentifier.Parse(AbpSession.UserId)

but i'm not certain if that was the correct solution...

<cite>ismcagdas: </cite> Hi, @Chrisk, thanks for your explanation.

We changed it to support DB per tenant architecture. In a single database only a userId was enough for distributing notifications but in a application with more than one database, we also need tenantId inforamtion. That is why userId is replaced with UserIdentifier.

Thank you for the explanation on why the format was switched around. But this sounds like single db vs multiple... does that mean that the entire 1.0 framework i'm using only supports one over the other? cause the two 0.8 and 1.0 has so many quirks in their differences, it's hard to believe they're not marketed as a separate entity.

Showing 1 to 1 of 1 entries