Base solution for your next web application

Activities of "ricardo"

Hello, how are you?

We are facing some issues while setting up our solution to deploy throug Azure Pipelines. Following the procedures specified in official documentation hosted here (https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Setting-Up-an-Azure-Pipeline-Mvc-Core), but it seems outdated.

Recents changes to Azure DevOps solution have removed the Classic Editor option, and now its enforced to use YAML, whatever the deployment method has been chosen. Can some professional assist us on how to deploy by the YAML method? Or sent us an updated documentation.

Best Regards Paulo Estraich

Question

Hi,

Does Aspnet zero support the use of Hangfire Pro? Do I need to perform any different configuration? Could you guide me.

I'm using AspNetCore Mvc

tanks.

Answer

Hi @ismcagdas,

Thanks for the feedback.

  1. And in the service layer, the date will always be returned in UTC when received from the database? Or should it be converted to the logged in user's time zone?

  2. I'm using a DevExpress grid, how could I do this date conversion?

Answer

I'm using mvc (Asp.Net Zero version 13.0)

Hi,

No.

Question

Hi,

I'm using mvc version 13.0.

datetime fields are not being converted to the time zone defined in host settings.

added in PreInitialize for CoreModule: Clock.Provider = ClockProviders.Utc;

the values are correctly saved in UTC in the database, but when retrieved in a query and displayed in HTML they continue to show in UTC

the converted value should be 12/01/2024 09:02:24

Hi, After updating to V13, NotificationPublisher is generating the following error:

ERROR 2024-01-11 16:07:23,657 [orker] Mvc.ExceptionHandling.AbpExceptionFilter - Can not set TenantId to 0 for IMustHaveTenant entities! Abp.AbpException: Can not set TenantId to 0 for IMustHaveTenant entities! at Abp.EntityFrameworkCore.AbpDbContext.CheckAndSetMustHaveTenantIdProperty(Object entityAsObj) at Abp.EntityFrameworkCore.AbpDbContext.ApplyAbpConceptsForAddedEntity(EntityEntry entry, Nullable1 userId, EntityChangeReport changeReport) at Abp.EntityFrameworkCore.AbpDbContext.ApplyAbpConcepts(EntityEntry entry, Nullable1 userId, EntityChangeReport changeReport) at Abp.EntityFrameworkCore.AbpDbContext.ApplyAbpConcepts() at Abp.EntityFrameworkCore.AbpDbContext.SaveChangesAsync(CancellationToken cancellationToken) at Abp.Zero.EntityFrameworkCore.AbpZeroCommonDbContext3.SaveChangesAsync(CancellationToken cancellationToken) at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.SaveChangesAsync() at Abp.Notifications.NotificationStore.<>c__DisplayClass14_0.<<InsertNotificationAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at Abp.Domain.Uow.UnitOfWorkManagerExtensions.WithUnitOfWorkAsync(IUnitOfWorkManager manager, Func1 action, UnitOfWorkOptions options) at Abp.Notifications.NotificationStore.InsertNotificationAsync(NotificationInfo notification) at Abp.Notifications.NotificationPublisher.PublishAsync(String notificationName, NotificationData data, EntityIdentifier entityIdentifier, NotificationSeverity severity, UserIdentifier[] userIds, UserIdentifier[] excludedUserIds, Nullable`1[] tenantIds, Type[] targetNotifiers)

my code

public async Task SendSolicitacaoColaboradorMessageAsync(UserIdentifier user, string message, NotificationSeverity severidade) { await _notificationPublisher.PublishAsync(AppNotificationNames.SolicitacoesColaborador, new MessageNotificationData(message), severity: severidade, userIds: new[] { user } ); }

await _appNotifier.SendSolicitacaoColaboradorMessageAsync(new UserIdentifier((int)AbpSession.TenantId, userId), $"mesage {Solicitacao.DataInicial}", Abp.Notifications.NotificationSeverity.Success);

Hi @ismcagdas

I didn't really pay attention to the details below:

Host.Current.Services.GetService<IPushManager>();

tanks.

Hi @ismcagdas

yes :

https://github.com/shinyorg/shiny

https://shinylib.net/

Thanks,

Hi,

I'm implementing the shiny package for background tasks and notifications in the maui app (XAML), but I am getting error when I try to inject the services:

Code:

Register Service:

Inject

Am I forgetting something to register the service?

my module:

Showing 1 to 10 of 32 entries