We use redis for hangfire database ; we add HttpApi.Host project this code
private void ConfigureHangfire(ServiceConfigurationContext context, IConfiguration configuration) { string redisConfig = configuration["Redis:HangfireRedis"].ToString();
context.Services.AddHangfire(config =>
{
config.UseRedisStorage(redisConfig, new RedisStorageOptions()
{
Prefix = "hangfire:app1:",
Db = 8,
});
//config.UseRecurringJobAdmin(typeof(StartupBase).Assembly;
});
context.Services.AddHangfireServer(options =>
{
options.ServerName = "EnzimWeb";
});
}
But we get error
2024-07-04 16:34:28.486 +03:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AuditLogging.AbpAuditLoggingApplicationModule, Volo.Abp.AuditLogging.Application, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null: Cannot convert period: 86400000 to cron expression, use HangfireBackgroundWorkerBase to define worker. See the inner exception for details. ---> Volo.Abp.AbpException: Cannot convert period: 86400000 to cron expression, use HangfireBackgroundWorkerBase to define worker at Volo.Abp.BackgroundWorkers.Hangfire.HangfireBackgroundWorkerManager.GetCron(Int32 period) at Volo.Abp.BackgroundWorkers.Hangfire.HangfireBackgroundWorkerManager.AddAsync(IBackgroundWorker worker, CancellationToken cancellationToken) at Volo.Abp.AuditLogging.AbpAuditLoggingApplicationModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) --- End of inner exception stack trace --- at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModulesAsync() at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app) at EnzimWeb.Program.Main(String[] args) in F:\azure\enzimiber\src\EnzimWeb.HttpApi.Host\Program.cs:line 38
Hi. we developed Notification(Bell) Service.
We apply step by step https://support.abp.io/QA/Questions/3592/How-do-I-force-the-Blazor-toolbar-to-refresh document .
and we developed backend services.
how can we add notification to user interface without refreshing
can you share sample code.

we developed Notifications(Bell Icon) component with https://docs.abp.io/en/abp/latest/UI/Blazor/Toolbars document. We Used LeptonX template. Notifications(Bell Icon) is showing but onclick event not working. our code
Blazor Module cs
private void ConfigureToolbar()
{
Configure<AbpToolbarOptions>(options =>
{
options.Contributors.Add(new MyToolbarContributor());
});
}
public class MyToolbarContributor : IToolbarContributor
{
public Task ConfigureToolbarAsync(IToolbarConfigurationContext context)
{
if (context.Toolbar.Name == LeptonXToolbars.Main)
{
context.Toolbar.Items.Insert(0, new ToolbarItem(typeof(NotificationsComponent)));
}
return Task.CompletedTask;
}
}
and NotificationsComponent.razor
@inherits Volo.Abp.AspNetCore.Components.AbpComponentBase
<div class="nav-link">
<i class="fas fa-bell" @onclick="ShowNotifications"></i>
</div>
@code {
private async Task ShowNotifications()
{
await Message.Info("TODO: Show notifications");
}
}
we add this code to all configuresservices
Configure<AbpMultiTenancyOptions>(options =>
{
options.IsEnabled = MultiTenancyConsts.IsEnabled;
});
and we Replace Services MultiTenantConnectionStringResolver with https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/MultiTenantConnectionStringResolver.cs
and we add connection string to tenant configuration(Test Tenant)
But we login with test tenant with special connection string but abp loaded to grid with data to default connection(Host) string database
MultiTenant ConnectionString property doesn't work.
Kion ve simdide Medicana projemizde Abp.io kullanıyoruz. medicanadaki senaryo biraz farklı. mevcut veritabanının kullanmamız gerekiyor. tüm permissionları menu yetkilerini oradan alıyoruz. bu yuzden kullanıcı logout oldugunda redisten permissionlarını silerek tekrar login olduguda medicananın dbsinden tekrar yüklemek istiyoruz. kod lokalde sorunsuz calısıyor ancak IIS servera surum cıktıgımızda redis keylerini silmedigi için yetkisi medicana tarfında degişse bile abp.io tarafında aynı kalıyor. 1 haftadır ugrasıyoruz son care sizden destek almak için yazmak istedim yardımlarınız için şimdiden saolun