Say i have multiple sites running on a single installation... from an ASP.NET perspective, they can/do share App Domains right....
if so, how do i segregate a singleton service class (registered with Windsor) to be per site ? Or would i just have site lookup as part of the service ?
(For the curious, its an Event Mediator service for loosely coupled module communication. This requires a singleton/site configuration)
jbland
I think that multiple sites on one installation run in their own appdomain when they are created as separate applications in IIS even when pointed to the same physical directory. Don't know this for sure however.
Actually by site i meant Cuyahoga.Core.Domain.Site. In other words, it seems possible (maybe likely) than multiple sites could be accessed from a single domain. In that case, i have a possible solution (prefix event names with site id.)
However, there seems to be one issue with 2.0. In my domain and service classes, i have ICuyahogaContext as a constructor parameter so i can have access to CurrentSite. However, i cant find anywhere in the code where ICuyahogaContext.SetSite() is called. I assume this is an oversight ?
jbland However, there seems to be one issue with 2.0. In my domain and service classes, i have ICuyahogaContext as a constructor parameter so i can have access to CurrentSite. However, i cant find anywhere in the code where ICuyahogaContext.SetSite() is called. I assume this is an oversight ?
At the moment, this is only used by the new admin interface. ICuyahogaContext is still a major work in progress.