Hi all.
Guys, i cant figure out how to get sessionfactory interceptor work, using
nhibernate facility.
There is next code in
Facilities\NHibernateIntegration\Castle.Facilities.NHibernateIntegration\NHibernateFacility.cs
.....
// If a Session Factory level interceptor was provided, we use
it
if
(Kernel.HasComponent("nhibernate.sessionfactory.interceptor"))
{
cfg.Interceptor = (IInterceptor)
Kernel["nhibernate.sessionfactory.interceptor"];
}
...
So, if we have IInterceptor component with id
"nhibernate.sessionfactory.interceptor" registered, it should be injected
into configuration. Correct me if i'm wrong, but seems that this component
not registered yet, when this code runs.
I can register session level interceptor ofcourse, and it works, but is
there a way to register sessionfactory interceptor using NH facility?
--
Best regards,
Andrew Melnichuk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---