Ayende @ Rahien

Refunds available at head office

The Forum Sample Application

So, it looks like the vote goes decidefully for MonoRail, so that is what I am going to build it with. I have setup a project here:
https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/SampleApplications/Hibernating.Forums

I have decided to take advantage of this series and show some other cool stuff that I have used, from the Repository<T> & NHQG to Binsor and MonoRail Windsor Integration.

The application is basically just UI and configuration right now. I did some very rough strcuturing of the UI in a way that should help me work on it.

The most interesting part is probably the windsor configuration:

import System.Reflection

import Castle.MonoRail.Framework

import Castle.MonoRail.WindsorExtension

 

Facility( "rails", RailsFacility )

 

webAsm = Assembly.Load("HibernatingForums.Web")

activeRecordAssemblies = ( Assembly.Load("HibernatingForums.Model"), )

 

for type in webAsm.GetTypes():

      if typeof(Controller).IsAssignableFrom(type):

            Component(type.Name, type)

      elif typeof(ViewComponent).IsAssignableFrom(type):

            Component(type.Name, type)

 

 

Component("active_record_repository", IRepository, ARRepository)

Component("active_record_unit_of_work",

      IUnitOfWorkFactory,

      ActiveRecordUnitOfWorkFactory,

      assemblies: activeRecordAssemblies )

I will probably start recording tomorrow (unlikely) or on Friday.

Comments

Vladan Strigo [MVP]
06/14/2007 07:15 AM by
Vladan Strigo [MVP]

Whyyyyyyy, oh whyyyyyyyyyyyyyyyyy :)

(don't you see me crying? :))

Ayende Rahien
06/14/2007 07:18 AM by
Ayende Rahien

Because at last count, I had 52% that wanted MonoRail sample.

After that, I will try to do a Rhino Igloo sample, since it means so much for you

Vladan Strigo [MVP]
06/14/2007 07:49 AM by
Vladan Strigo [MVP]

Well... if it's faster... can you make a post on the comparasment of your Igloo vs. the Castle Igloo?

Obviously you wanted to improve it... it would be interested to see why you wanted to do it and which areas you improved (changed?)...

Comments have been closed on this topic.