Base solution for your next web application

Activities of "paradoxit"

Hi,

I have an issue where adding an AppService to a constructor I get a Castle Windsor DI error as it's creating a circular dependency, i.e. AppService1 requires AppService2 and AppService2 requires AppService1.

Can someone please advise how I achieve this?

For example a UserAppService method DeleteUser might call ContactAppService and a method in ContactAppService might need to call UserAppService.

I hope it makes sense.

Andy help would be greatly appreciated.

Kind regards, David Hawkins

How do we disable audit logging for Authenticate method? It's currently logging these methods to the database.

Thanks, David

I'm using the Angular + ASP.Net version of the site and can't seem to find any reference for:

SecurityStampValidator or app.UseCookieAuthentication

Can you please advise what code changes are need for the Angular4 project? Having the website log out exactly 24 hours after login is very frustrating for end-users.

Thanks in advance, David

Hi,

Thanks for the quick response I'll read the articles now.

Kind regards, David Hawkins

Hi,

When you tick remember me, no matter how much you use the website you still get logged out exactly 24 hours from login.

Can you advise how to make it so every page request resets this counter?

Kind regards, David

Is this something I need to implement on the Angular side as you login? I.e. lookup the users tenant and then set a cookie? If so how do I implement setting the cookie?

Please can anyone advise how I detect the tenantId from email address used to login so I can present a single domain and login to the users? I will prevent the same users being associated with multiple tenants.

I have seen this article : <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#determining-current-tenant">https://aspnetboilerplate.com/Pages/Doc ... ent-tenant</a>

However there is little detail of implementation, i.e. where do I add the resolver etc?

Thanks for any help in advance.

Kind regards, David

Hi,

I'm actually using Angular and WebAPI, is the NoWrap option possible still in the app service?

If not I can create a controller as you described but I don't know how to authenticate against it as authentication is done automatically in the Angular <-> AppService communication. Is there any guides on Angular <-> Custom controller auth, as I would like to access data such as tenantId from inside the controller but they are null.

Thanks for your help on this. Kind regards,

David Hawkins

How can I change the HTTP status code from an app service? When returning data it returns 200 and if I throw an exception it returns 500.

I would like to return custom codes and basic ajax response, without any wrapped data. I tried adding DontWrapResult to my method declaration of my service interface but nothing changed, it still returned wrapped JSON.

Any help on this would be greatly received.

Thank you, David Hawkins

When I call CalculateContentRootFolder in WebContentDirectoryFinder it works locally but when deployed to Azure I get the error System.ApplicationException: Could not find content root folder!

I make the call an AppService in the Application project if that helps.

Could you please advise how I resolve this? It appears the code is looking for a sln file which won't exist in the deployed version.

Showing 1 to 10 of 40 entries