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 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>();
 }
Beispiel #4
0
 public GearsController(IGearService gearService)
 {
     _gearService = gearService;
 }
Beispiel #5
0
 public GearController(IGearService gearService)
 {
     _service = gearService;
     _externalUserId = TokenIdentityHelper.GetOwnerIdFromToken();
 }