@ismcagdas,
I'm using the angular+asp.net core version. Here're the package versions I've in my project:
abp-ng2-module: ^1.2.0 abp-web-resources:^2.2.1
Were you guys able to figure out what was happening? I'm facing a similar issue as well.
I've a project based on Asp.NET Core + Angular 2 project.
I want to add the user session timeout control mentioned here: <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4_material_design/ui_session_timeout.html">http://keenthemes.com/preview/metronic/ ... meout.html</a>
If I set the tokenAuthConfig i nthe Web.Core project's WebCoreModule.cs to set the expiration to a value which also drives the above plugin, how do i configure the stay alive url so that a new token can be generated?
Yeah. that was the case . :( Thank you for that.
public class TenantCustmozation_Tests : AppTestBase
{
private readonly TenantCustomizationAppService _app;
public TenantCustmozation_Tests()
{
_app = Resolve<TenantCustomizationAppService>();
}
[Fact]
public async Task App_returns_tenantCustomization_if_present()
{
LoginAsDefaultTenantAdmin();
var uowManager = Resolve<IUnitOfWorkManager>();
using (uowManager.Begin())
{
UsingDbContext(
ctx =>
{
ctx.Customizations.Add(new PatientPortal.POS.TenantCustomization
{
LoginBodyText = "Hello",
TenantId = AbpSession.TenantId.Value
});
});
var result = await _app.GetCustomizations();
result.ShouldNotBeNull();
result.LoginBodyText.ShouldBe("Hello");
}
}
This is the working test. When I remove the uowManager.Begin(), the test fails because the DbContext has already been disposed when it reaches the _app.GetCustomizations() call.
Hi,
I'm looking at the unit test: AuditLogAppService_Test. Should_Get_Audit_Logs()
Here, we setup the Arrange part by Adding some values to the AuditLogs table and then calling the service in the act step.
I followed the same step to test my own app service. However, I got the DbContext disposed exception. I followed through other discussions here and was able to get the tests to work by starting a unit of work.
How is it working in the AuditLogAppService_Test?
Yup! That was the issue. Thank you.
Hello,
We had the Asp.NET Core + Angular 2 version of the the boilerplate with the .xproj structure. We update the solution to VS2017 which used the csproj structure. We also upgraded from Angular 2 to Angular 4.
But now, the localized strings from the Project.Core\Localization*.xml are not working.
I saw a suggestion in one of the older posts to make sure that the xml files are embedded resources. I've verified that as well.
Currently, the Abp assemblies are at version 2.0.2.
Please help.
The [Audited] attribute worked. The username, client, ipaddress and browser are null but that would be as expected.
Thanks I'll try out the BackgroundJobInfo.DefaultWaitFactor = 0 for single attempt jobs.
For the Auditing, I did take a look at it but since it needed the tenantId and userid, I didn't think that it'd work. I was not sure where the background job would produce those values.