Base solution for your next web application
Open Closed

RE: AppService circular dependency issue #4208


User avatar
0
paradoxit created

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


1 Answer(s)