summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina/Infrastructure/Container/Windsor/WindsorDependencyContainer.cs
blob: c35c6ce331b5a2398838909cfef9d5b6895c7533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Castle.Windsor;
using Castle.Windsor.Configuration.Interpreters;

namespace Marina.Infrastructure.Container.Windsor {
	public class WindsorDependencyContainer : IDependencyContainer {
		private readonly IWindsorContainer _container;

		public WindsorDependencyContainer() {
			_container = new WindsorContainer( new XmlInterpreter( @"windsor.config.xml" ) );
		}

		public Interface GetMeAnImplementationOfAn< Interface >() {
			return _container.Resolve< Interface >( );
		}
	}
}