How to set Session expire time.If the user does not have any action for 2 hours, the user will exit the login status.Thanks.
How to integrate AD with asp.net zero Core ? Thanks.
How can I user migration tools update multi database: For I have two database:
I have two TENANTS (A,B), I want bind A to <a class="postlink" href="http://www.contoso.com/A,and">http://www.contoso.com/A,and</a> bind B to <a class="postlink" href="http://www.contoso.com/B.Thanks">http://www.contoso.com/B.Thanks</a>.
Hello, I configure my app to run with HangFire(Asp.net zero 4.3, I use HangFire sync. between DB1 and DB2). I can see a job being enqueued. The job is making use of the NotificationPublisher to send a notification to a specific user (testing purpose). The user is never receiving those notifications.
I debugged the code and it works fine.
I also checked the AbpTenantNotifications, it seems those notifications used are not added to the DB.
WebModule Configuration.BackgroundJobs.UseHangfire(configuration => { configuration.GlobalConfiguration.UseSqlServerStorage("Default"); });
Startup app.UseHangfireDashboard("/hangfire", new DashboardOptions { Authorization = new[] { new AbpHangfireAuthorizationFilter(AppPermissions.Pages_Administration_HangfireDashboard) } });
Code: Select all public class TestingHangFireDomainService : DrcAppDomainServiceBase, ITestingHangFireDomainService { private readonly IAppNotifier _appNotifier; private readonly IUnitOfWorkManager _unitOfWorkManager; private readonly UserManager _userManager;
public TestingHangFireDomainService(IAppNotifier appNotifier, UserManager userManager, IUnitOfWorkManager unitOfWorkManager)
{
_appNotifier = appNotifier;
_unitOfWorkManager = unitOfWorkManager;
_userManager = userManager;
}
public async Task NotifyUser()
{
using (_unitOfWorkManager.Begin())
{
var user = _userManager.Users.Where(u => u.Id == 2).FirstOrDefault();
await _appNotifier.SendMessageAsync(user.ToUserIdentifier(), "Testing HangFire", Abp.Notifications.NotificationSeverity.Info);
}
}
}
Regards, zepan
How do you bind different tenants to different domains? There are users not logged in, how to judge is under different tenants? Example: some public external pages can be viewed without user login, but their respective tenants cannot see each other.