Base solution for your next web application

Activities of "feliw"

Hi Hikalkan,

Is there any plan for EnqueueAsync in HangfireBackgroundJobManager to support ContinueWith<T> ?

Thanks

Hi,

Currently in the project that I working on, we have an entity that need to implement Unique Index attribute and that entity also is ISoftDelete entity. So even if the record is deleted it still cannot insert the entity with same "Code " value. Does it mean that I cannot use this ISoftDelete and Unique Index attribute together ?

Thanks before :D

Hi Hikal,

Is it possible for us to separate the current aspnetzero architecture deployment into WebService server, and FrontEnd server ? Right now in SPA, the webservice is hosted directly with the Web correct ? Need your direction about this, and do you find any concerns if we separate the layer like that ?

Thanks for your great support before. :D :D

Hi Hikal,

Thanks for the great answer.

Hi,

Currently we have a background job which calling a method to do a calculation and performing entity (IMustHaveTenant) creation. When I call the save changes I got an error of TenantId must be set, is there a way to auto set the tenant id as the jobStore ? Right now for each entity creation I need to set the TenantId manually.

Thanks, any advice or direction will be a great help.

possible duplciate, i can find the solution in this post. Thankss

#1116@47462a3c-a219-49fe-b40b-3350a623293f

Hi,

Any advice for this ?, spent a day for this but still cannot figure it out. I doing an upgrade from version 0.8.3 to 0.9.3

Can't create component 'Nascence.BodynitsPortal.MultiTenancy.TenantManager' as it has dependencies to be satisfied.

'Nascence.BodynitsPortal.MultiTenancy.TenantManager' is waiting for the following dependencies:
- Service 'Abp.MultiTenancy.IAbpZeroDbMigrator' which was not registered.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Castle.MicroKernel.Handlers.HandlerException: Can't create component 'Nascence.BodynitsPortal.MultiTenancy.TenantManager' as it has dependencies to be satisfied.

'Nascence.BodynitsPortal.MultiTenancy.TenantManager' is waiting for the following dependencies:
- Service 'Abp.MultiTenancy.IAbpZeroDbMigrator' which was not registered.

Hi,

I'm not sure why I'm not able to add another post action in WebApi AccountController. I got this error when I try to access the action

Multiple actions were found that match the request: Authenticate on type Nascence.BodynitsPortal.WebApi.Controllers.AccountController AuthenticateCardNo on type Nascence.BodynitsPortal.WebApi.Controllers.AccountController

Below is my action, one fore normal login, and another with card. Any advice on which part that I do wrong ? Thankss Before. :D

[HttpPost]
        public async Task<AjaxResponse> Authenticate(LoginModel loginModel)
        {
            CheckModelState();

            var loginResult = await GetLoginResultAsync(
                loginModel.UsernameOrEmailAddress,
                loginModel.Password,
                loginModel.TenancyName
                );

            var ticket = new AuthenticationTicket(loginResult.Identity, new AuthenticationProperties());

            var currentUtc = new SystemClock().UtcNow;
            ticket.Properties.IssuedUtc = currentUtc;
            ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));

            return new AjaxResponse(OAuthBearerOptions.AccessTokenFormat.Protect(ticket));
        }
[HttpPost]
        public async Task<AjaxResponse> AuthenticateCardNo(CardLoginModel loginModel)
        {
            CheckModelState();

            var loginResult = await GetCardLoginResultAsync(
                loginModel.Facility,
                loginModel.CardNo
                );

            var ticket = new AuthenticationTicket(loginResult.Identity, new AuthenticationProperties());

            var currentUtc = new SystemClock().UtcNow;
            ticket.Properties.IssuedUtc = currentUtc;
            ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));

            return new AjaxResponse(OAuthBearerOptions.AccessTokenFormat.Protect(ticket));
        }

Nevermind this feature, I able to implement the function already.

Thanks

Hi,

Can I get authenticated token with only just passing username and hashpassword to check within the identity ? Because we have a requirement that to login using swipe card concept, so I can only passing CardNo to get the username and hashpassword. The current Authenticate method is only can be used with username and password string.

Thanks before :D :D

Showing 11 to 20 of 25 entries