public SearchService( IHttpClientFactoryService httpClientFactoryService, IGlobalStateService globalStateService) { _httpClientFactoryService = httpClientFactoryService; _globalStateService = globalStateService; }
private const string _apiUrl = "https://10.0.2.2:5001/"; //azure #endif //TODO: get url from app settings -> https://www.andrewhoefling.com/Blog/Post/xamarin-app-configuration-control-your-app-settings?fbclid=IwAR1clIxqp4TM1xto0YzJg70duaLT8Tdwt5sY-maEYpvV0TnbiYzoWpShnIk public HttpClientFactoryService( IPollyPolicyService pollyPolicyService, IGlobalStateService globalStateService) { _pollyPolicyService = pollyPolicyService; _globalStateService = globalStateService; }
public AccountService( IHttpClientFactoryService httpClientFactoryService, IGlobalStateService globalStateService, ISqlLiteService sqlLiteService) { _httpClientFactoryService = httpClientFactoryService; _globalStateService = globalStateService; _sqlLiteService = sqlLiteService; }
public SportEventService( ILoggerService loggerService, IGlobalStateService globalStateService, IRestClient restClient) { _loggerService = loggerService; _globalStateService = globalStateService; _restClient = restClient; }
public MainViewModel( IMvxNavigationService navigationService, ISqlLiteService sqlLiteService, IGlobalStateService globalStateService, IAccountService accountService) { _navigationService = navigationService; _sqlLiteService = sqlLiteService; _globalStateService = globalStateService; _accountService = accountService; }
public UserService( ILoggerService loggerService, IRestClient restClient, IGlobalStateService globalStateService, IUserDialogs userDialogs) { _globalStateService = globalStateService; _loggerService = loggerService; _restClient = restClient; _userDialogs = userDialogs; }
public virtual void InitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer = null) { this._serviceContainer = serviceContainer; this._ecsFactoryService = serviceContainer.GetService <IECSFactoryService>(); this._randomService = serviceContainer.GetService <IRandomService>(); this._timeMachineService = serviceContainer.GetService <ITimeMachineService>(); this._globalStateService = serviceContainer.GetService <IGlobalStateService>(); this._inputService = serviceContainer.GetService <IInputService>(); this._viewService = serviceContainer.GetService <IViewService>(); this._audioService = serviceContainer.GetService <IAudioService>(); this._map2DService = serviceContainer.GetService <IMap2DService>(); this._resService = serviceContainer.GetService <IResService>(); this._effectService = serviceContainer.GetService <IEffectService>(); this._eventRegisterService = serviceContainer.GetService <IEventRegisterService>(); this._idService = serviceContainer.GetService <IIdService>(); this._debugService = serviceContainer.GetService <IDebugService>(); }
protected override void OnInit(BaseContext context, IServiceContainer services) { _context = (Context)context; //BuildInServices _randomService = services.GetService <IRandomService>(); _timeMachineService = services.GetService <ITimeMachineService>(); _globalStateService = services.GetService <IGlobalStateService>(); _viewService = services.GetService <IViewService>(); _audioService = services.GetService <IAudioService>(); _inputService = services.GetService <IInputService>(); _map2DService = services.GetService <IMap2DService>(); _resService = services.GetService <IResService>(); _effectService = services.GetService <IEffectService>(); _eventRegisterService = services.GetService <IEventRegisterService>(); _idService = services.GetService <IIdService>(); _debugService = services.GetService <IDebugService>(); //GameServices _gameStateService = services.GetService <IGameStateService>(); _gameConfigService = services.GetService <IGameConfigService>(); _gameEventService = services.GetService <IGameEventService>(); }