public class ZoneController : BaseApiController { private IZoneManager CurrentZoneManager; public ZoneController(IZoneManager zoneManager) { if (zoneManager == null) { throw new ArgumentNullException("Manager"); } CurrentZoneManager = zoneManager; } }
public class UnitTypeManager : IUnitTypeManager { static IUnitTypeProvider CurrentUnitTypeProvider; public UnitTypeManager(IUnitTypeProvider unitTypeProvider) { if (unitTypeProvider == null) { throw new ArgumentNullException("provider"); } CurrentUnitTypeProvider = unitTypeProvider; } }
public class ZoneProvider : IZoneProvider { private MobileContext _context; public ZoneProvider() { _context = new MobileContext (); } }
public static void RegisterTypes(IUnityContainer container) { container.RegisterType(); container.RegisterType( new HierarchicalLifetimeManager()); container.RegisterType( new HierarchicalLifetimeManager()); }
ZoneTypeManager
IZoneTypeManager
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)