Skip to content

Instantly share code, notes, and snippets.

using Castle.MicroKernel.Registration;
using Castle.Windsor;
using Castle.MicroKernel.SubSystems.Configuration;
using CastleDemo.Infrastructure;
namespace CastleDemo.Installers
{
public class StoryTellerInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
using Castle.Windsor;
using Castle.Windsor.Installer;
using CastleDemo.Plumbing;
using Castle.MicroKernel.Registration;
namespace CastleDemo
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
using System;
namespace CastleDemo.Infrastructure
{
public interface IStoryTeller
{
string GoodMorning();
}
}
@Itslet
Itslet / Global.asax.cs
Created October 31, 2010 08:47
Fluent Nhibernate session per request
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using NHibernate;
using NHibernate.Context;