Created
July 18, 2012 15:40
-
-
Save wsky/3137006 to your computer and use it in GitHub Desktop.
How to implement Castle.MicroKernel.ComponentActivator.AbstractComponentActivator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public virtual object Create(CreationContext context, Burden burden) | |
{ | |
var configuration = Model.ExtendedProperties[Constants.SessionFactoryConfiguration] as Configuration; | |
var f= configuration.BuildSessionFactory(); | |
burden.SetRootInstance(f);//new for 3.x | |
//onCreation(model, instance); | |
return f; | |
} |
"No ISessionFactory implementation associated with the given alias: nh.facility.default"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windsor引入Burden的意义? http://davybrion.com/blog/2008/12/the-component-burden/