Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "mahendra"

Hi Team,

Today after upgrading to new version 2.6.1, i have tried to create new entity "OEPartnerPrivacyStatementMaster" but it has not generated any single relevant file for same. Pleae see below screenshot for your reference:

Hi Team,

Could you please update on my last post?

Hi Team,

Sorry..i am not getting what you do mean by modify endpoint? Do want to say i have to implement exact LogOut() method given in TokenAuthController? If yes then how will i implement it because in our service API (in OneEnterprise.iHUB.Application project), we don't apply api verbs like: [HttpGet] and also lot of these lines could be implemened in controller only like User object of User.Claims belongs to ControllerBase class.

Our requirement is also that once user is logout and deleted, we have to redirect him to Login page, how can i achieve this things through service API?

Hi Team,

As per visual studio marketplace, latest version is 2.6.0 which was released on 14th Augest 2020 and this version does not contain solution of this issue.

Hi Team,

I am still waiting for the release from you. my project is on hold because of this. I appreciate if you please update me with the ETA.

Regards, Mahendra

Answer

Here is my Entity Class, CacheItem and Cahe Class...

`[Table("InvProductGroup")]
public class ProductGroup : MCFullAuditedEntity
{
    [Column("ProductGroupKey")]
    [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
    [MaxLength(BaseEntityConsts.MaxKeyLength)]
    public override string Id { get; set; }

    [Column("Id")]
    [Required]
    [MaxLength(BaseEntityConsts.MaxEntityIDLength)]
    public virtual string EntityId { get; set; }

    [MaxLength(BaseEntityConsts.MaxDescriptionLength)]
    public virtual string Description { get; set; }

    
}

[AutoMapFrom(typeof(ProductGroup))]
public class ProductGroupCacheItem
{
    public const string CacheName = "ProductGroup";
    public string EntityId { get; set; }
    public string Description { get; set; }
    
}


public class ProductGroupCache: MustHaveTenantEntityCache<ProductGroup, ProductGroupCacheItem, string>, ITransientDependency
{
    public ProductGroupCache(ICacheManager cacheManager, IUnitOfWorkManager unitOfWorkManager, IRepository<ProductGroup, string> repository)
    : base(cacheManager, unitOfWorkManager, repository)
    {
    }

    
}`


Now in the appService, when I try to get a productGroup having id - 10000000000001 using below code

`var abc = _cacheManager
            .GetCache(ProductGroupCacheItem.CacheName)
            .Get("10000000000001", ()=> someMethod());`


it goes to someMethod (below)...which is fine and then in the subsequent call, it does not go into someMethod...which is also fine.    
            
 `private async Task<ProductGroupDto> someMethod() 
    {
        return ObjectMapper.Map<ProductGroupDto>(await _productGroupRepository.FirstOrDefaultAsync("10000000000001"));
    }`
    
    

But when I update the productGroup having id 10000000000001, it updates the productGroup using following code

`ProductGroup productGroup = await _productGroupRepository.GetAsync(createOrUpdateProductGroupDto.Id); ..... .....

ObjectMapper.Map(createOrUpdateProductGroupDto, productGroup); await _productGroupRepository.UpdateAsync(productGroup);`

After the above update, when I try to fetch the productGroup 10000000000001 again, I am expecting the someMethod function to be called as it should invalidate the cache, but it does not....

Hi Team, you informed us that this issue will be resolved in next aspnetzero tool or aspnetzero framework. I could not find the solution in 14/08/2020 release of the tool. Please let us know the tentative date by when this is expected. Also, please priortize this issue as our release is impacted. Regards, Mahendra

Hi,

I merged the PR as asked by you. The lock screen is getting displayed on session timeout.

But when I enter the password in the lock screen, it lands me to my default page and NOT on the page where I was. Is this the default behavior? IF yes, how can I land up on the page where I was prior to my lock screen.

Regards, Mahendra

Hi,

I think I was not able to make you understand about plain text password. Let me try to explain the use case.

We are creating a retail application that have a component called Web Point of Sales (Web POS). Let’s say a user only has the rights on POS component. So when he logs into the system and he straight away lands on the POS screen. He continues doing sale. Now for some time he needs to leave his computer etc. and he wanted to just lock his screen (of course he can lock the complete computer itself). When he comes back he presses a button called unlock. Here the system would ask him to enter password and if the password is valid/matches, he should be able to unlock the screen and lands up on POS screen.

Please advise how can we achieve the matching of credential.

Regards, Mahendra

Hi Aspnetzero team,

Any update for us as we are stuck in extending or using the role and permission model.

Regards, Mahendra

Showing 81 to 90 of 123 entries