Hi all,
A coworker just introduced us to the whole Rhino.Tools library.
I started playing with a test project using Rhino.Commons,
ActiveRecord and Boo. I got it all building (don't know if it works
yet), and I want to add the atm facility here is my boo file:
import System.Reflection
import System.Web.Mvc
activeRecordAssemblies = ( Assembly.Load("Rhino.Commons_1"), )
webAssembly = Assembly.Load("Rhino.Commons_1")
IoC.Container.AddFacility("automatic_transaction_facility",
Rhino.Commons.RhinoTransactionFacility)
Component("active_record_repository", IRepository, ARRepository)
Component("active_record_unit_of_work", IUnitOfWorkFactory,
ActiveRecordUnitOfWorkFactory, assemblies: activeRecordAssemblies)
for type in webAssembly.GetTypes():
if typeof(IController).IsAssignableFrom(type):
Component(type.Name, type)
I am having a problem with the AddFacility line as this exception is
being thrown:
BCE0023: Boo.Lang.Compiler.CompilerError: No appropriate version of
'Castle.Windsor.IWindsorContainer.AddFacility' for the argument list
'(string, System.Type)' was found.
Any ideas what I am doing wrong and how do I get the ATM registered?
Thanks,
Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---