hi
Please share the logs of http 405.
liming.ma@volosoft.com
hi
Try to use 2.1.0
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.1.0" />
Do you have an example of how to write logs into the database by implementing an ILogEventSink or any other way?
hi
I don't have experience with this.
hi
What's your LeptonX package version?
How can I check your solution? Is it possible to share code?
hi
Abp uses OpenIddict as an OAuth server.
You can get and refresh the token by its endpoints.
https://www.oauth.com/
hi
Please use using for _currentTenant and ICurrentPrincipalAccessor
using(_currentTenant.Change(eventData.TenantId))
{
var newPrincipal = new ClaimsPrincipal(
new ClaimsIdentity(
new Claim[] {
new Claim(AbpClaimTypes.UserId, eventData.CreatorId.ToString()),
new Claim(AbpClaimTypes.TenantId, eventData.TenantId.ToString()),
new Claim(AbpClaimTypes.UserName, "admin")
}
)
);
using(_currentPrincipalAccessor.Change(newPrincipal))
{
var detail = await _bulkActionDetailRepository.GetAsync(x => x.BulkActionId == eventData.BulkActionId && x.FileDescriptorId == eventData.FileDescriptorId);
if (detail != null)
{
detail.Status = eventData.Status;
detail.StatusDetail = eventData.StatusMessage;
await _bulkActionDetailRepository.UpdateAsync(detail, true);
}
}
}
There is no API to get this. You can create your own, or just get a setting from javascript.
https://docs.abp.io/en/abp/latest/UI/AspNetCore/JavaScript-API/Settings
hi
var defaultLanguage = await settingProvider.GetOrNullAsync(LocalizationSettingNames.DefaultLanguage);
https://docs.abp.io/en/abp/latest/Settings#reading-the-setting-values