public LoadsController(IMapper mapper, ILoadService loadService, INotificationService notificationService, IUserContext userContext) { _mapper = mapper; _loadService = loadService; _notificationService = notificationService; _user = userContext; }
public FileDialogService(IMessageBoxService messageBoxService, ILoadService loadService) { this.messageBoxService = messageBoxService; this.loadService = loadService; loadService.PackageLoaded += PackageServiceOnPackageLoaded; loadService.PackageUnloaded += PackageServiceOnPackageUnLoaded; }
public MapViewModel(IWindowService windowService, IMapService mapService, IPackageService packageService, IImportService importService, ILoadService loadService, IFormService formService, IClientConfigurationProvider clientConfigurationProvider) { this.loadService = loadService; this.formService = formService; this.clientConfigurationProvider = clientConfigurationProvider; this.windowService = windowService; this.JSEventContainer = formService; this.ScriptingObject = mapService; loadService.PackageLoaded += LoadServiceOnPackageLoaded; loadService.PackageUnloaded += LoadServiceOnPackageUnLoaded; loadService.PackageDescriptorChanged += new EventHandler(packageService_PackageDescriptorChanged); loadService.MobileChanged += loadServiceMobileChanged; OpenHelpWindowCommand = new DelegateCommand(() => windowService.OpenHelpWindow(HelpFileNames.ZustandsabschnittMapHelpPage)); //OpenLegendWindowAllCommand = new DelegateCommand(() => windowService.OpenLegendWindowAll()); //all changes to an Observable Collection must be done by the same Thread it was created by, becaus of Thread Affinity Action action = new Action(() => { InspektionsroutenDictionary = new CollectionView(new ObservableCollection <XMLKeyValuePair <Guid, string> >()); }); Application.Current.Dispatcher.Invoke(action); this.IsVisible = false; this.setDefaultHtmlSource(); mapService.ShowLegend += onOpenLegendWindow; }
public LoadService(ILoadService <T> service, ITenant owner) { _owner = owner; _filter = e => ((ITenant)e).TenantId == _owner.TenantId; _service = service; _paths = new List <string>(); }
public LoadsController(IMapper mapper, ILoadService loadService, IConfigurationRoot configuration, IUserContext userContext) { _mapper = mapper; _loadService = loadService; _configuration = configuration; _user = userContext; }
public SyncService(ILoadService loadService, ILoggerFactory loggerFactory, ISecurityService security, IUploader uploader) { _loadService = loadService; _loggerFactory = loggerFactory; _security = security; _uploader = uploader; }
public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path) where TProperty : class { _paths.Add(path); _service = _service.Include(path); return(this); }
public LoadController(ILoadService loadService, IUnitOfWork unitOfWork) { Contract.Assert(loadService != null); Contract.Assert(unitOfWork != null); this.unitOfWork = unitOfWork; this.loadService = loadService; }
public MainWindowViewModel(ILogger logger, IServiceProvider serviceProvider) : base(logger) { _informationService = serviceProvider.GetService <ILoadService <Information> >(); _viewModelFactory = new ViewModelFactory(serviceProvider, logger, this); _informationService.LoadEvent += OnLoadCompleted; }
public LoadService(ILoadService <T> service, ILoadServiceProvider failoverProvider, Action <Exception> logger, FailoverStrategy strategy) { _service = service; _failoverService = failoverProvider != null?failoverProvider.Load <T>() : null; _logger = logger; _strategy = strategy; }
public LoadService(ILoadService <T> service, ILoadServiceProvider failoverProvider, Action <Exception> logger, FailoverStrategy strategy, bool allowInconsistentReplication) { _service = service; _failoverService = failoverProvider != null?failoverProvider.Load <T>() : null; _logger = logger; _strategy = strategy; _allowInconsistentReplication = allowInconsistentReplication; }
public LoadsController(IMapper mapper, ILoadService loadService, IUserProfileService userProfileService, IUserContext userContext, IConfigurationRoot configuration, Utilities util) { _mapper = mapper; _loadService = loadService; _userProfileService = userProfileService; _userContext = userContext; _configuration = configuration; _util = util; }
public Utilities(LoadshopDataContext context, IConfigurationRoot config, HttpClient client, IUserContext userContext, ICommonService commonService, ILoadService loadService) { _config = config; _client = client; _context = context; _userContext = userContext; _commonService = commonService; _loadService = loadService; }
public ExportService( IClientConfigurationProvider clientConfigurationProvider, IDTOService dtoService, ILoadService loadService, IFormService formService) { this.formService = formService; this.clientConfigurationProvider = clientConfigurationProvider; this.dtoService = dtoService; this.loadService = loadService; }
public SynchronizeViewModel(IDomainContext domainContext) { DomainContext = domainContext; webService = domainContext.WebService; loadService = new LoadService(domainContext?.DataService, webService, domainContext?.BrandRepository, domainContext?.DirectoryRepository); CreateCommand(); RefreshLastUpdate(); InitProperties(); SubscribeEvents(); }
public ShippingLoadController(IShippingService shippingService, ILoadService loadService, ILocationService locationService, IUserContext userContext, IUserProfileService userProfileService, IMapper mapper) { _shippingService = shippingService; _loadService = loadService; _locationService = locationService; _userContext = userContext; _userProfileService = userProfileService; _mapper = mapper; }
public RequestController(IRequestService requestService, ICountryService countryService, ICityService cityService, ILoadService loadService, IRequestTypeService requestTypeService, IRequestStatusService requestStatusService, ICompanyService companyService) { this.requestService = requestService; this.countryService = countryService; this.cityService = cityService; this.loadService = loadService; this.requestTypeService = requestTypeService; this.requestStatusService = requestStatusService; this.companyService = companyService; }
private void RegisterServices() { IUnityContainer container = new UnityContainer(); container.RegisterType <IImageService, ImageService>(); container.RegisterType <IFontsService, FontsService>(); container.RegisterType <ISaveService, SaveService>(); container.RegisterType <ILoadService, LoadService>(); container.RegisterType <IPrintService, PrintService>(); container.RegisterType <IUrlToHyperlinkService, UrlToHyperlinkService>(); _imageService = container.Resolve <ImageService>(); _fontService = container.Resolve <FontsService>(); _saveService = container.Resolve <SaveService>(); _loadService = container.Resolve <LoadService>(); _printService = container.Resolve <PrintService>(); _urlToHyperlinkService = container.Resolve <UrlToHyperlinkService>(); }
public PackageService(IMessageBoxService messageBoxService, IClientConfigurationProvider clientConfigurationProvider, ILanguageService languageService, IExportService exportService, IDTOService dtoService, ILoadService loadService, IGeoJsonService geoJsonService, IFormService formService, IWindowService windowService, IProgressService progressService ) { this.dtoService = dtoService; this.exportService = exportService; this.messageBoxService = messageBoxService; this.clientConfigurationProvider = clientConfigurationProvider; this.languageService = languageService; this.loadService = loadService; this.geoJsonService = geoJsonService; this.formService = formService; this.windowService = windowService; this.progressService = progressService; }
public LoadService(InterceptorRepository repository, ILoadService <T> service, Func <InterceptorContext, IDisposable> interceptorFactory) { _repository = repository; _service = service; _interceptorFactory = interceptorFactory; }
public ImageController() { _loadService = new LoadService(); _imageService = new ImageService(); }
public LoadsController(ILoadService loadService) { _loadService = loadService; }
private void createServices() { timeService = new TimeService(); eventService = new EventService(); uiFactoryService = new UIFactoryService(); wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>(); viewService = new ViewService(eventService, uiFactoryService); loadService = new LoadService(eventService); gameService = new GameService(pool, viewService); pathService = new PathService(pool, wwwService, eventService); levelService = new LevelService(wwwService, eventService); enemyService = new EnemyService(pool, wwwService, eventService); bonusService = new BonusService(pool, wwwService, eventService); difficultyService = new DifficultyService(pool, wwwService, eventService); infoService = new InfoService(viewService, uiFactoryService, eventService); settingsService = new SettingsService(pool); translationService = new TranslationService(settingsService); languageService = new LanguageService(wwwService, eventService); analyticsService = new AnalyticsService(settingsService); shipService = new ShipService(timeService, eventService); gamerService = new GamerService(eventService); currencyService = new CurrencyService(eventService, gamerService); iapService = new IAPService(eventService); adService = new AdService(currencyService); shopService = new ShopService(currencyService, eventService, iapService); updateables.Add(infoService); }
/// <summary> /// Creates new instance of <see cref="LoadCommand"/> /// </summary> /// <param name="loadService">Load service</param> public LoadCommand(ILoadService loadService) { this._loadService = loadService; }
public LoadController(ILoadService loadService) { this.loadService = loadService; }
/// <summary> /// Initialize service. /// </summary> /// <param name="application">The application.</param> /// <param name="providerFactory">The provider factory.</param> /// <param name="loadService">The load service.</param> internal void Initialize(XafApplication application, IDataStoreProviderFactory providerFactory, ILoadService loadService) { LoadService = loadService; setupCollector(application, providerFactory); }
public MainWindowViewModel(IFormViewModel formViewModel, IMapViewModel mapViewModel, IProgressViewModel progressViewModel, IFileDialogService fileDialogService, IPackageService packageService, IImportService importservice, ISaveService saveService, ILoadService loadService, ILogService logService, IWindowService windowService, IProgressService progressService) { Loggers.PerformanceLogger.Debug("MainWindowViewModel constructor started"); this.loadService = loadService; loadService.PackageLoaded += PackageServiceOnPackageLoaded; loadService.PackageUnloaded += OnPackageUnloaded; this.saveService = saveService; // this.gisService = gisService; this.windowService = windowService; this.fileDialogService = fileDialogService; this.packageService = packageService; this.importservice = importservice; this.progressService = progressService; MapViewModel = mapViewModel; FormViewModel = formViewModel; ProgressViewModel = progressViewModel; ShowHideKarteCommand = new DelegateCommand(() => MapViewModel.IsVisible = !MapViewModel.IsVisible); ShowHideFormularCommand = new DelegateCommand(() => FormViewModel.IsVisible = !FormViewModel.IsVisible); ExitCommand = new DelegateCommand(App.Current.Shutdown); ImportCommand = new DelegateCommand(startImportWorker); SaveCommand = new DelegateCommand(() => fileDialogService.ShowSaveDialog(saveService.Save)); ExportCommand = new DelegateCommand(exportSingle); ExportAllCommand = new DelegateCommand(() => fileDialogService.ShowExportDialog(packageService.Export, true)); ExportLogCommand = new DelegateCommand(() => fileDialogService.ShowExportLogDialog(logService.ExportLog)); WindowTitle = string.Format("{0} v{1}-{2}", LocalizationLocator.MobileLocalization.MainWindowTitle, typeof(MainWindow).Assembly.GetName().Version, VersionPostfix.Postfix); MenuItemsVisible = false; isEnabled = true; fileDialogService.ImportStart += new EventHandler(fileDialogServiceImportStart); fileDialogService.ImportFinished += new EventHandler(fileDialogServiceImportFinished); progressService.OnStart += progressOnStart; progressService.OnStop += progressOnStop; Loggers.PerformanceLogger.Debug("MainWindowViewModel constructor ended"); }
public ProtocolService(XafDeltaModule owner, ILoadService loadService) : base(owner) { LoadService = loadService; Collector = new Collector(this); }
public MainViewModel(ILoadService service, IUpdateService saveService) { _loadService = service; _saveService = saveService; }
public LoadService(ILoadService <T> service, GenerationalCachingRepository <TCache> cache) { _cache = cache; _service = service; _paths = new List <Expression>(); }
public LoadController(ILoadService loadService) { _loadService = loadService; processor = new ChartProcessor(); }
public ApiAccessService(ILoadService loadService) { _loadService = loadService; }
public LoadsController(ILoadService service) { this._service = service; }