Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "suruat"

I added a few new notifications to AppNotifier.cs. For Example:

public async Task NotifyMemberOfGroupUpdateAsync(User reciever, User invitingUser, long groupId, string message, NotificationType notificationType)
{
    var notificationData = new MessageNotificationData(message);
    notificationData["memberPictureUrl"] = (invitingUser.ProfilePicture != null) ? invitingUser.ProfilePicture.LocationUrl : "";
    notificationData["groupId"] = groupId;
    notificationData["notificationType"] = (int)notificationType;

    await _notificationPublisher.PublishAsync(
        AppNotificationNames.NotifyMemberOfGroupUpdateAsync,
        data: notificationData,
        severity: NotificationSeverity.Info,
        userIds: new[] { reciever.ToUserIdentifier() });
}
    

My question is, when these notifications are published, is it automactically also emitted via signalR or do I need to do somthing to emit it realtime via signalR. I checked the SignalRChatCommunicator.cs file in the Web.Core project and I don't see a signalR method that is sending it. I only see (getChatMessage, getFriendshipRequest, getUserConnectNotification, getUserStateChange, getallUnreadMessagesOfUserRead and getReadStateChange)

I have my api deployed to an Azure Appplication service. The audit table is working just fine but it is not capturing ClientIpAddress it always shows the same IP. Does anyone know how I can fix this?

Hello Guys

I am following this post to integrate signal R, with Xamarin: https://support.aspnetzero.com/QA/Questions/6841 I have the back end working properly now and was able to connect using a console app. However when I try to connect using Xamarin, I get the following error:

System.TypeLoadException: Could not resolve type with token 0100003f from typeref (expected class 'Microsoft.Extensions.Logging.Abstractions.Internal.NullScope' in assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') at Microsoft.Extensions.Logging.Logger 1[T].Microsoft.Extensions.Logging.ILogger.BeginScope[TState] (TState state) [0x00000] in <05c3899430e944c987384a03cf948677>:0 at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync (System.Threading.CancellationToken cancellationToken) [0x00017] in <f381011e9b214489bcb373743f31ed9d>:0 at MyApp.Services.Chat.ChatService.ConnectAsync () [0x0007e]

Does anyone have an idea around this?

Hi,

I am developing a Xamarin Application using Abp Zero for my backend. For some reason, my permission keeps getting reset for my users. For example: If i asign the admin role to a user, that user gets all the the permissions, this is reflected in the web UI and mobile app. Than lets say after a while I reopen the mobile app, than i get an error message saying the the permissions are missing and when I look at the user managerment that user still has the Admin Role, but all permissions are unchecked.

Does anyone have any idea what's happening?

I'm not sure which version of ABP I have since I cannot access the download page anymore, however it's about 2 years old. I have not tried to run the xamarin app before untill today.

When I tried to run/build the andriod app, I got alot of errors. I Think I have resolved all but one:

Severity Code Description Project File Line Suppression State Error Can not resolve reference: Microsoft.AspNetCore.Hosting.Abstractions, referenced by MyApp.Application.Shared. Please add a NuGet package or assembly reference for Microsoft.AspNetCore.Hosting.Abstractions, or remove the reference to MyApp.Application.Shared. MyApp.Mobile.Droid

Does anyone know how to resolve this?

We are building a muti-tenant system using the Asp.net Core/ Angular2+ solution. However we don't want users to be responsible for passing the Tenancy name in (via subdomain, or via a form). We want to get the tenant based on the user that is logging in (we are using the single db approach).

I am assuming we need to enforce that every user that is created, including tenant admin users must have unique usernames. Correct?

What is the best way to implement this? What do we need to change in the angular side and the Api side?

AspnetZero has support for permissions for users and role. This is useful to hide functionality from certain users or group of users (roles)).

My question is how can I use this to also hide or show data.

For example: If I have a Cities database, and I want to be able to say this user can only view these cities, or this role can only view these cities, so that when I query the DB it filters based on the roles and/or user. Is there an easy way to implement this in AspnetZero or to hook into the current perrmission system but use it for data filtering?

Thanks

Hello

I would like only the Host to be able to modify language, and this should effect all tenants.

What's the best approach to accomplish this?

Showing 1 to 8 of 8 entries