Well your second approach with the RemoteAppDomainHost should be the way to
go. You need to have a host for both the publisher of the events and the
consumers of the events. And if you want them in the same process I guess
the only way is to have the service bus for the event consumers hosted in a
remote appdomain.
I have never tried to to use the RemoteAppDomainHost in a web application,
maybe the appdomain created doesn't get the applicationbase path set
correctly? Try using the constructor where you can specify the bin path of
your web application along with the bootstrapper type:
public RemoteAppDomainHost(string assemblyPath, Type boosterType)
You then need to specify your configuration file using the following method
on the RemoteAppDomainHost:
public RemoteAppDomainHost Configuration(string configFile)
It would then look something like this in your code:
var consumerHost = new RemoteAppDomainHost("path to web app assemblies",
typeof(ConsumerBootStrapper))
.Configuration("Consumers.config");
consumerHost .Start();
Don't know if it will solve your problem, but its worth a shot...
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rhino-tools-dev/-/b08kFsEUbBQJ.
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/rhino-tools-dev?hl=en.