public MapsController()
 {
     locationsServices = new LocationServices(new SmartAudioCityGuideEntities());
     commentServices = new CommentServices(new SmartAudioCityGuideEntities());
     locationController = new LocationsController();
     speechWebServicesController = new SpeechWebServicesController();
 }
Esempio n. 2
0
 public PostServices(IAnimaniaConsoleContext context, ILocationServices locationServices, IAnimalTypeServices animalTypeServices, IBreedTypeServices breedTypeServices)
 {
     this.context            = context;
     this.locationServices   = locationServices;
     this.animalTypeServices = animalTypeServices;
     this.breedTypeServices  = breedTypeServices;
 }
Esempio n. 3
0
 public CommonController(ILocationServices locationService, IRoleService roleService, IStoreServices storeService, IUserService userService)
 {
     this.locationService = locationService;
     this.roleService     = roleService;
     _storeService        = storeService;
     _userService         = userService;
 }
        public LocationApiController(ILocationServices adServices)
        {
            if (adServices == null)
                throw new ArgumentNullException("locationServices");

            _locationServices = adServices;
        }
 public MapsController(ILocationServices _locationServices, ICommentServices _commentServices)
 {
     locationsServices = _locationServices;
     commentServices = _commentServices;
     locationController = new LocationsController(_locationServices, _commentServices);
     speechWebServicesController = new SpeechWebServicesController(_commentServices);
 }
Esempio n. 6
0
 public TicketServices(BookingCarDbContext context, IRelatedPeopleServices relatedPeopleServices,
                       ILocationServices locationServices, IParticipantServices participantServices) : base(context)
 {
     _relatedPeopleServices = relatedPeopleServices;
     _locationServices      = locationServices;
     _participantServices   = participantServices;
 }
Esempio n. 7
0
 public SearchController(ISearchServices searchServices, ICategoryServices categoryServices, ILocationServices locationServices, IReferenceServices referenceServices, IEmailServices emailService)
     : base(locationServices, referenceServices)
 {
     _searchServices = searchServices;
     _categoryServices = categoryServices;
     _emailService = emailService;
 }
Esempio n. 8
0
 public PriceController(ILocationServices locationServices, IProductServices productServices, IPriceServices priceServices, IMapper mapper)
 {
     _locationServices = locationServices;
     _productServices  = productServices;
     _priceServices    = priceServices;
     _mapper           = mapper;
 }
 public LocationsWebServicesController(ILocationServices _locationServices, ICodeServices _codeServices, IUserLocationServices _userLocationServices, ICommentServices _commentServices)
 {
     locationServices = _locationServices;
     codeServices = _codeServices;
     userLocationServices = _userLocationServices;
     commentServices = _commentServices;
     userLocationWebServices = new UserLocationWebServicesController(_codeServices, _userLocationServices, _commentServices);
 }
 public LocationsWebServicesController()
 {
     locationServices = new LocationServices(new SmartAudioCityGuideEntities());
     codeServices = new CodeServices(new SmartAudioCityGuideEntities());
     userLocationServices = new UserLocationServices(new SmartAudioCityGuideEntities());
     commentServices = new CommentServices(new SmartAudioCityGuideEntities());
     userLocationWebServices = new UserLocationWebServicesController();
 }
Esempio n. 11
0
 public StoreController(
     IUserService userService,
     IStoreServices storeService,
     ILocationServices locationService,
     IRoleService roleService) : base(storeService, userService)
 {
     this.locationService = locationService;
     this.roleService     = roleService;
 }
Esempio n. 12
0
        public LocationApiController(ILocationServices adServices)
        {
            if (adServices == null)
            {
                throw new ArgumentNullException("locationServices");
            }

            _locationServices = adServices;
        }
Esempio n. 13
0
 public DealerController(IDealerInformationServices dealerInformationServices, IDealerTypeServices dealerTypeServices, IHostEnvironment env, IMapper mapper, ILocationServices locationServices, IUsersService usersService)
 {
     _dealerInformationServices = dealerInformationServices;
     _dealerTypeServices        = dealerTypeServices;
     _env              = env;
     _mapper           = mapper;
     _locationServices = locationServices;
     _userService      = usersService;
 }
Esempio n. 14
0
 public RegistrationDataPageViewModel(INavigationService navigationService, ILocationServices locationServices, IAuthenticationService authenticationService) : base(navigationService, locationServices)
 {
     IsBusy                     = true;
     IsNotBusy                  = false;
     BusyLayout                 = false;
     Visiblebutton              = true;
     ButtonActivity             = false;
     this.authenticationService = authenticationService;
     // Locate = new Command(async () => await Getalllocatio());
     //  Getlocation = new Command<double>(async (double latlong) => await GetCurrentLocation());
 }
Esempio n. 15
0
 public StoreNoLoginController(
     IUserService userService,
     IStoreServices storeService,
     ILocationServices locationService,
     IRoleService roleService)
 {
     this.userService     = userService;
     this.storeService    = storeService;
     this.locationService = locationService;
     this.roleService     = roleService;
 }
Esempio n. 16
0
        public LocationMainViewViewModel(IEventAggregator _EventAggregator, IRegionManager _RegionManager, ILocationServices _LocationServices)
        {
            RegionManager    = _RegionManager;
            LocationServices = _LocationServices;
            EventAggregator  = _EventAggregator;
            EventAggregator.GetEvent <AuthenticatedUserEvent>().Subscribe(InitAuthenticatedUser);

            OnLoadedCommand = new DelegateCommand(OnLoaded);

            _saveLocationCommand   = new DelegateCommand <object>(SaveLocation);
            _deleteLocationCommand = new DelegateCommand <object>(DeleteLocation, CanDelete);
            interactionRequest     = new InteractionRequest <Confirmation>();
        }
Esempio n. 17
0
 public SearchServices(IRepository repository,
                       ICategoryRepository categoryRepository,
                       ISearchRepository searchRepository,
                       IHelperService helperService,
                       IReferenceServices referenceServices,
                       ILocationServices locationServices)
 {
     _repository         = repository;
     _categoryRepository = categoryRepository;
     _searchRepository   = searchRepository;
     _helperService      = helperService;
     _referenceServices  = referenceServices;
     _locationServices   = locationServices;
 }
Esempio n. 18
0
 public SearchServices(IRepository repository, 
     ICategoryRepository categoryRepository, 
     ISearchRepository searchRepository, 
     IHelperService helperService, 
     IReferenceServices referenceServices,
     ILocationServices locationServices)
 {
     _repository = repository;
     _categoryRepository = categoryRepository;
     _searchRepository = searchRepository;
     _helperService = helperService;
     _referenceServices = referenceServices;
     _locationServices = locationServices;
 }
Esempio n. 19
0
 public OrderController(ICategoryService categoryService,
                        ILocationServices locationService,
                        IOrderService orderSerivce,
                        IStoreServices storeService,
                        IUserService userService,
                        IKerryService kerryService,
                        IProductServices productServices) : base(storeService, userService)
 {
     _categoryService = categoryService;
     _locationService = locationService;
     _orderService    = orderSerivce;
     _iKerryService   = kerryService;
     _productServices = productServices;
 }
Esempio n. 20
0
 public PostController(IAdServices adServices, IAdDetailsServices adDetailsServices, ILocationServices locationServices, IUserServices userServices, ICategoryServices categoryServices, IAdDataConsistencyServices adConsistencyServices, IReferenceServices referenceServices, IAdActivationServices adActivationServices, IAdDeletionServices adDeletionServices, IAdRequestServices adRequestServices, IAdContactServices adContactServices, ISpamAdServices spamAdServices)
 {
     _adServices            = adServices;
     _adDetailsServices     = adDetailsServices;
     _locationServices      = locationServices;
     _userServices          = userServices;
     _categoryServices      = categoryServices;
     _adConsistencyServices = adConsistencyServices;
     _referenceServices     = referenceServices;
     _adActivationServices  = adActivationServices;
     _adDeletionServices    = adDeletionServices;
     _adRequestServices     = adRequestServices;
     _adContactServices     = adContactServices;
     _spamAdServices        = spamAdServices;
 }
Esempio n. 21
0
 public PostController(IAdServices adServices, IAdDetailsServices adDetailsServices, ILocationServices locationServices, IUserServices userServices, ICategoryServices categoryServices, IAdDataConsistencyServices adConsistencyServices, IReferenceServices referenceServices, IAdActivationServices adActivationServices, IAdDeletionServices adDeletionServices, IAdRequestServices adRequestServices, IAdContactServices adContactServices, ISpamAdServices spamAdServices)
 {
     _adServices = adServices;
     _adDetailsServices = adDetailsServices;
     _locationServices = locationServices;
     _userServices = userServices;
     _categoryServices = categoryServices;
     _adConsistencyServices = adConsistencyServices;
     _referenceServices = referenceServices;
     _adActivationServices = adActivationServices;
     _adDeletionServices = adDeletionServices;
     _adRequestServices = adRequestServices;
     _adContactServices = adContactServices;
     _spamAdServices = spamAdServices;
 }
Esempio n. 22
0
        public void Initialize()
        {
            var data = new List <Location>
            {
                new Location {
                    Id = 1, LocationName = "Sofia"
                },
                new Location {
                    Id = 2, LocationName = "Plovdiv"
                },
            };

            var mockSet = data.GetQueryableMockDbSet();

            mockContext = new Mock <IAnimaniaConsoleContext>();
            mockContext.Setup(x => x.Locations).Returns(mockSet.Object);

            locationService = new LocationServices();
        }
Esempio n. 23
0
 public SearchController(ISearchServices searchServices, ICategoryServices categoryServices, ILocationServices locationServices, IReferenceServices referenceServices, IEmailServices emailService)
     : base(locationServices, referenceServices)
 {
     _searchServices   = searchServices;
     _categoryServices = categoryServices;
     _emailService     = emailService;
 }
Esempio n. 24
0
 public LocationLookupViewModel(ILocationServices _loc)
 {
     Items = new ObservableCollection <AddressLookup>();
     Loc   = _loc;
 }
Esempio n. 25
0
 public VerificationViewModel(INavigationService navigationService, ILocationServices locationServices, IAuthenticationService authenticationService) : base(navigationService, locationServices, authenticationService)
 {
 }
Esempio n. 26
0
 public LocationsController(ILocationServices ls, IAnalyticsServices ass)
 {
     service          = ls;
     analyticsService = ass;
 }
Esempio n. 27
0
        /// <summary>
        /// 异步初始化
        /// </summary>
        public static InitializationOperation InitializeAsync(InitializeParameters parameters)
        {
            if (parameters == null)
            {
                throw new Exception($"YooAsset create parameters is null.");
            }

            if (parameters.LocationServices == null)
            {
                throw new Exception($"{nameof(IBundleServices)} is null.");
            }
            else
            {
                _locationServices = parameters.LocationServices;
            }

#if !UNITY_EDITOR
            if (parameters is EditorSimulateModeParameters)
            {
                throw new Exception($"Editor simulate mode only support unity editor.");
            }
#endif

            // 创建驱动器
            if (_isInitialize == false)
            {
                _isInitialize = true;
                UnityEngine.GameObject driverGo = new UnityEngine.GameObject("[YooAsset]");
                driverGo.AddComponent <YooAssetDriver>();
                UnityEngine.Object.DontDestroyOnLoad(driverGo);
            }
            else
            {
                throw new Exception("YooAsset is initialized yet.");
            }

            // 检测参数范围
            if (parameters.AssetLoadingMaxNumber < 1)
            {
                parameters.AssetLoadingMaxNumber = 1;
                YooLogger.Warning($"{nameof(parameters.AssetLoadingMaxNumber)} minimum value is 1");
            }
            if (parameters.OperationSystemMaxTimeSlice < 30)
            {
                parameters.OperationSystemMaxTimeSlice = 30;
                YooLogger.Warning($"{nameof(parameters.OperationSystemMaxTimeSlice)} minimum value is 30 milliseconds");
            }

            // 鉴定运行模式
            if (parameters is EditorSimulateModeParameters)
            {
                _playMode = EPlayMode.EditorSimulateMode;
            }
            else if (parameters is OfflinePlayModeParameters)
            {
                _playMode = EPlayMode.OfflinePlayMode;
            }
            else if (parameters is HostPlayModeParameters)
            {
                _playMode = EPlayMode.HostPlayMode;
            }
            else
            {
                throw new NotImplementedException();
            }

            // 初始化异步操作系统
            OperationSystem.Initialize(parameters.OperationSystemMaxTimeSlice);

            // 初始化下载系统
            if (_playMode == EPlayMode.HostPlayMode)
            {
#if UNITY_WEBGL
                throw new Exception($"{EPlayMode.HostPlayMode} not supports WebGL platform !");
#else
                var hostPlayModeParameters = parameters as HostPlayModeParameters;
                DownloadSystem.Initialize(hostPlayModeParameters.BreakpointResumeFileSize);
#endif
            }

            // 初始化资源系统
            InitializationOperation initializeOperation;
            if (_playMode == EPlayMode.EditorSimulateMode)
            {
                _editorSimulateModeImpl = new EditorSimulateModeImpl();
                _bundleServices         = _editorSimulateModeImpl;
                AssetSystem.Initialize(true, parameters.AssetLoadingMaxNumber, parameters.DecryptionServices, _bundleServices);
                var editorSimulateModeParameters = parameters as EditorSimulateModeParameters;
                initializeOperation = _editorSimulateModeImpl.InitializeAsync(
                    editorSimulateModeParameters.LocationToLower,
                    editorSimulateModeParameters.SimulatePatchManifestPath);
            }
            else if (_playMode == EPlayMode.OfflinePlayMode)
            {
                _offlinePlayModeImpl = new OfflinePlayModeImpl();
                _bundleServices      = _offlinePlayModeImpl;
                AssetSystem.Initialize(false, parameters.AssetLoadingMaxNumber, parameters.DecryptionServices, _bundleServices);
                initializeOperation = _offlinePlayModeImpl.InitializeAsync(parameters.LocationToLower);
            }
            else if (_playMode == EPlayMode.HostPlayMode)
            {
                _hostPlayModeImpl = new HostPlayModeImpl();
                _bundleServices   = _hostPlayModeImpl;
                AssetSystem.Initialize(false, parameters.AssetLoadingMaxNumber, parameters.DecryptionServices, _bundleServices);
                var hostPlayModeParameters = parameters as HostPlayModeParameters;
                initializeOperation = _hostPlayModeImpl.InitializeAsync(
                    hostPlayModeParameters.LocationToLower,
                    hostPlayModeParameters.ClearCacheWhenDirty,
                    hostPlayModeParameters.DefaultHostServer,
                    hostPlayModeParameters.FallbackHostServer);
            }
            else
            {
                throw new NotImplementedException();
            }

            // 监听初始化结果
            initializeOperation.Completed += InitializeOperation_Completed;
            return(initializeOperation);
        }
 public LocationsController(ILocationServices _locationServices, ICommentServices _commentServices)
 {
     locationServices = _locationServices;
     commentServices = _commentServices;
 }
 public LocationServicesFixture()
 {
     this.locationServices = new LocationServices(null, new ModelDataAnnotationCheck());
     this.locationModel    = new LocationModel();
 }
Esempio n. 30
0
 public OrderController(ICatelogyService categoryService, ILocationServices locationService, IOrderService orderSerivce, IStoreServices storeService, IUserService userService) : base(storeService, userService)
 {
     _categoryService = categoryService;
     _locationService = locationService;
     _orderService    = orderSerivce;
 }
Esempio n. 31
0
 public BaseController(ILocationServices locationServices,IReferenceServices referenceServices)
 {
     _locationServices = locationServices;
     _referenceServices = referenceServices;
 }
 public CommentController()
 {
     commentsServices = new CommentServices(new SmartAudioCityGuideEntities());
     locationServices = new LocationServices(new SmartAudioCityGuideEntities());
 }
Esempio n. 33
0
 public JourneysController(IJourneyServices js, ILocationServices ls, IOperatingCompanyServices ops)
 {
     service                 = js;
     locationService         = ls;
     operatingCompanyService = ops;
 }
Esempio n. 34
0
 public LocationController(ILocationServices LocationServices)
 {
     _locationService = LocationServices;
 }
 public TextWebServicesController()
 {
     locationsServices = new LocationServices(new SmartAudioCityGuideEntities());
 }
 public LocationController(ILocationServices locationService, ICustomerServices customerService, IMoviesServices moviesService)
 {
     _locationServices = locationService;
 }
Esempio n. 37
0
 public SalesSummaryServices(AppDbContext dbContext, ILocationServices locationServices)
 {
     this.dbContext        = dbContext;
     this.locationServices = locationServices;
     LoadData();
 }
Esempio n. 38
0
 public SalesSummaryController(ISalesSummaryServices salesSummaryServices, ILocationServices locationServices)
 {
     this.salesSummaryServices = salesSummaryServices;
     this.locationServices     = locationServices;
 }
Esempio n. 39
0
 public RouteController(IRouteServices routeServices,
                        ILocationServices locationServices)
 {
     _routeServices    = routeServices;
     _locationServices = locationServices;
 }
Esempio n. 40
0
 public BaseController(ILocationServices locationServices, IReferenceServices referenceServices)
 {
     _locationServices  = locationServices;
     _referenceServices = referenceServices;
 }
Esempio n. 41
0
 public LocationController(ILocationServices locationServices)
 {
     this.locationServices = locationServices;
 }
 public RouteServices(TransportDbContext context,
                      ILocationServices locationServices)
 {
     _context          = context;
     _locationServices = locationServices;
 }
 public CommentsWebServicesController(ICodeServices _codeServices, ILocationServices _locationServices, ICommentServices _commentServices)
 {
     codeServices = _codeServices;
     locationServices = _locationServices;
     commentServices = _commentServices;
 }
 public CommentController(ICommentServices _commentServices, ILocationServices _locationServices)
 {
     commentsServices = _commentServices;
     locationServices = _locationServices;
 }
 public TextWebServicesController(ILocationServices _locationServices)
 {
     locationsServices = _locationServices;
 }