public void Init(ServiceLocator serloc) { Debug.Log("Setting up event manager."); _serloc = serloc; _gearmgr = _serloc.GetService("GearManager") as IGearService; Debug.Log("Calling gear service through IGearService: "); _gearmgr.DoGearRelatedStuff(); }
public SearchForm() { InitializeComponent(); _adService = InstanceFactory.GetInstance <IAdService>(); _cityService = InstanceFactory.GetInstance <ICityService>(); _colorService = InstanceFactory.GetInstance <IColorService>(); _carsService = InstanceFactory.GetInstance <ICarsService>(); _gearService = InstanceFactory.GetInstance <IGearService>(); _fuelService = InstanceFactory.GetInstance <IFuelService>(); }
public GearsController(IGearService gearService) { _gearService = gearService; }
public GearController(IGearService gearService) { _service = gearService; _externalUserId = TokenIdentityHelper.GetOwnerIdFromToken(); }