I have 2 services that depend on each other that I want to resolve
with Windsor. Both services use setter injection to get the other
service injected. The container doesn't crash but It always leaves one
of the dependencies unresolved. I'm not doing anything funky here.
Something like this.
IAdvertisingService{
void TrackAdCampaing(AdCampaign campaign);
}
IPromotionService{
void TrackPromoCode(PromoCode code);
}
AdvertisingService:IAdvertisingService{
IPromotionService{get;set}
....
}
PromotionService:IPromotionService{
IAdvertisingService{get;set;}
...
}
Is there anyway to get around this? I am using the fluent registration
api.
Thanks,
Jesse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---