1
0
mirror of synced 2024-11-04 18:49:16 +00:00
Tapeti/Tapeti.SimpleInjector/SimpleInjectorControllerFactory.cs

23 lines
474 B
C#

using System;
using SimpleInjector;
namespace Tapeti.SimpleInjector
{
public class SimpleInjectorControllerFactory : IControllerFactory
{
private readonly Container container;
public SimpleInjectorControllerFactory(Container container)
{
this.container = container;
}
public object CreateController(Type controllerType)
{
return container.GetInstance(controllerType);
}
}
}