View HomeController.cs
This file contains 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 class HomeController : Controller | |
{ | |
// | |
// GET: /Home/ | |
public ILogger Logger { get; set; } | |
private readonly IStoryTeller _teller; | |
public HomeController(IStoryTeller teller) | |
{ | |
_teller = teller; |
View StoryTellerInstaller.cs
This file contains 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
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) |
View IStoryTeller.cs
This file contains 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
using System; | |
namespace CastleDemo.Infrastructure | |
{ | |
public interface IStoryTeller | |
{ | |
string GoodMorning(); | |
} | |
} | |
View globalasax.cs
This file contains 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
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 |
View ControllersInstaller.cs
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using Castle.MicroKernel.SubSystems.Configuration; | |
using System.Web.Mvc; | |
using CastleDemo.Controllers; |
View WindsorControllerFactory.cs
This file contains 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
using Castle; | |
using Castle.MicroKernel; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace CastleDemo.Plumbing | |
{ | |
public class WindsorControllerFactory : DefaultControllerFactory | |
{ | |
private readonly IKernel kernel; |
View Db4oTest.cs
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using Web.Infrastructure; | |
using Core; | |
namespace Test | |
{ |
View Sessionfactory.cs
This file contains 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
using Db4objects.Db4o; | |
using System.Linq; | |
using Db4objects.Db4o.Linq; | |
using System.Web; | |
using System.IO; | |
using System; | |
using System.Collections.Generic; | |
namespace Web.Infrastructure { |
View Db4oSession.cs
This file contains 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
using Db4objects.Db4o; | |
using System.Linq; | |
using Db4objects.Db4o.Linq; | |
using System.Web; | |
using System.IO; | |
using System; | |
using System.Collections.Generic; | |
namespace Web.Infrastructure | |
{ |
View ISession.cs
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Web.Infrastructure | |
{ | |
public interface ISession:IDisposable { | |
void CommitChanges(); | |
Db4objects.Db4o.IObjectContainer Container { get; } |
NewerOlder