コード例 #1
0
 public ProvisioningEngineService(IEngineService iEngineService, IOrderService iOrderService, ILogger logger, Guid tenantId)
 {
     _iEngineService = iEngineService;
     _iOrderService  = iOrderService;
     _logger         = logger;
     _tenantId       = tenantId;
 }
コード例 #2
0
 public DetailsModel(IEngineService engineService, HumanErrorProjectContext context)
 {
     EngineService  = engineService;
     Context        = context;
     PreAssignments = context.Set <PreAssignment>();
     Assignments    = context.Set <Assignment>();
 }
コード例 #3
0
 public EnginesController(IAuthorizationService authService, IEngineRepository engines,
                          IEngineService engineService)
 {
     _authService   = authService;
     _engines       = engines;
     _engineService = engineService;
 }
コード例 #4
0
 public ProjectsController(IAuthorizationService authService, IProjectRepository projects,
                           IEngineService engineService)
 {
     _authService   = authService;
     _projects      = projects;
     _engineService = engineService;
 }
コード例 #5
0
        public SearchFightTest()
        {
            var services = ConfigureServices();

            serviceProvider = services.BuildServiceProvider();
            dataRetriever   = serviceProvider.GetService <IEngineService>();
        }
コード例 #6
0
ファイル: CarService.cs プロジェクト: NagornyIgor/SimpleDI
        public CarService(IEngineService engineService, IBrakeService brakeService, IControls controls)
        {
            _engineService = engineService;
            _brakeService  = brakeService;
            _controls      = controls;

            Name = $"Car: {Guid.NewGuid().ToString()}";
        }
コード例 #7
0
 public EnginesController(FormulaContext context,
                          UserManager <SimUser> userManager,
                          PagingHelper pagingHelper,
                          IEngineService dataService)
     : base(context, userManager, pagingHelper, dataService)
 {
     _engines = dataService;
 }
コード例 #8
0
        public SchemesController(IEngineService workflowService, IRepository <WorkflowScheme> workflowSchemesRepository, IRepository <WorkflowAssociation> workflowAssociationsRepository)
        {
            _workflowService = workflowService;

            _workflowSchemesRepository = workflowSchemesRepository;

            _workflowAssociationsRepository = workflowAssociationsRepository;
        }
コード例 #9
0
 public ChessViewModel(IEngineService es)
 {
     engine                = es;
     BoardItems            = Chess.BoardSetup();
     ctxTaskFactory        = new TaskFactory(TaskScheduler.FromCurrentSynchronizationContext());
     engine.EngineMessage += EngineMessage;
     engine.StartEngine();
 }
コード例 #10
0
 public SFProjectService(IJsonApiContext jsonApiContext, IMapper mapper, IUserAccessor userAccessor,
                         IRepository <SFProjectEntity> projects, IEngineService engineService, IOptions <SiteOptions> siteOptions,
                         SyncJobManager syncJobManager)
     : base(jsonApiContext, mapper, userAccessor, projects)
 {
     _engineService  = engineService;
     _siteOptions    = siteOptions;
     _syncJobManager = syncJobManager;
 }
コード例 #11
0
 public BuildsController(IAuthorizationService authService, IBuildRepository builds,
                         IEngineRepository engines, IEngineService engineService, IOptions <EngineOptions> engineOptions)
 {
     _authService   = authService;
     _builds        = builds;
     _engines       = engines;
     _engineService = engineService;
     _engineOptions = engineOptions;
 }
コード例 #12
0
        public void TestSetup()
        {
            serviceLog = new TestTargetsLogger("TestTargetsCollection");

            testConfig = ProcessConfigSetCzModule.CreateModule(null);

            testEngine = EngineServiceModule.CreateModule();

            testConfig.InitModule();
        }
コード例 #13
0
        public void SetUp()
        {
            moq = new MockRepository(MockBehavior.Strict);
            mockEngineFactory = moq.Create <IEngineFactory>();
            mockFieldService  = moq.Create <IFieldService>();
            mockShapeService  = moq.Create <IShapeService>();
            mockInputService  = moq.Create <IInputService>();

            sut = new EngineService(mockEngineFactory.Object, mockFieldService.Object, mockShapeService.Object, mockInputService.Object);
        }
コード例 #14
0
        public ClientNetworkService(ILogger logger, IEngineService engineService)
        {
            _logger = logger;
            NetPeerConfiguration config = new NetPeerConfiguration(engineService.ApplicationIdentifier);

            _client = new NetClient(config);
            _client.Start();

            _boundPacketActions = new Dictionary <string, Tuple <Type, Action <PacketBase> > >();
        }
コード例 #15
0
 public SignalRService(
     IWorldStateService worldStateService,
     IConfigurationService engineConfig,
     IEngineService engineService,
     IActionService actionService)
 {
     this.worldStateService = worldStateService;
     this.engineService     = engineService;
     this.actionService     = actionService;
     this.engineConfig      = engineConfig.Value;
 }
コード例 #16
0
ファイル: PainterSystem.cs プロジェクト: zunath/Ceriyo
 /// <inheritdoc />
 public PainterSystem(IInputService inputService,
                      IEngineService engineService,
                      Camera2D camera,
                      IIsoMathService isoMathService)
     : base(Aspect.All(typeof(Position),
                       typeof(Paintable)))
 {
     _inputService   = inputService;
     _camera         = camera;
     _engineService  = engineService;
     _isoMathService = isoMathService;
 }
コード例 #17
0
 // GET: Home
 public HomeController(IUpdateCar updateCar, IGetCarByPlateNumber getCarByPlateNumber, IGetCarById getCarByIdCommand, ICreateCar createCarCommand, IBrandService brandService, IModelService modelService, IEngineService engineService, IOwnerService ownerService, IGetAllCars getAllCarsQuery)
 {
     _context             = new CarHistoryContext();
     _getCarByPlateNumber = getCarByPlateNumber;
     _createCarCommand    = createCarCommand;
     _brandService        = brandService;
     _modelService        = modelService;
     _engineService       = engineService;
     _ownerService        = ownerService;
     _getCarByIdCommand   = getCarByIdCommand;
     _getAllCarsQuery     = getAllCarsQuery;
     _updateCar           = updateCar;
 }
コード例 #18
0
        public RequestService(IEngineService engineService, ITableDataRecordRepository tableDataRecordRepository,
                              IOptions <PelotonOptions> options, ILibraryRepository libraryRepository)
        {
            _engineService             = engineService;
            _tableDataRecordRepository = tableDataRecordRepository;
            _libraryRepository         = libraryRepository;
            _options = options.Value;

            _entityNameLookup = new ConcurrentDictionary <string, string>();
            _entityNameLookup.TryAdd("WellView", "idwell");
            _entityNameLookup.TryAdd("SiteView", "idsite");
            _entityNameLookup.TryAdd("RigView", "idrig");
        }
コード例 #19
0
        public TriggersController(IRepository <ProjectTrigger> projectTriggerRepository, IRepository <WorkflowScheme> workflowSchemesRepository, IRepository <WorkflowAssociation> workflowAssociationsRepository, IEngineService workflowService,
                                  IRepository <Trigger> triggerRepository)
        {
            _projectTriggerRepository = projectTriggerRepository;

            _workflowSchemesRepository = workflowSchemesRepository;

            _workflowAssociationsRepository = workflowAssociationsRepository;

            _triggerRepository = triggerRepository;

            _workflowService = workflowService;
        }
コード例 #20
0
 public CarsController(ICarService carService, IModelCarService modelCarService, IMakeCarService makeCarService, IBodyCarService bodyCarService, ApplicationDbContext db, Cloudinary cloudinary, ICloudinaryService cloudinaryService, IFeatureService featureService, UserManager <ApplicationUser> userManager, IEngineService engineService)
 {
     this.carService      = carService;
     this.modelCarService = modelCarService;
     this.makeCarService  = makeCarService;
     this.bodyCarService  = bodyCarService;
     this.db                = db;
     this.cloudinary        = cloudinary;
     this.cloudinaryService = cloudinaryService;
     this.featureService    = featureService;
     this.userManager       = userManager;
     this.engineService     = engineService;
 }
コード例 #21
0
 public ParatextSyncRunner(IRepository <UserSecret> userSecrets, IRepository <SFProjectSecret> projectSecrets,
                           ISFProjectService projectService, IEngineService engineService, IParatextService paratextService,
                           IRealtimeService realtimeService, IDeltaUsxMapper deltaUsxMapper, IParatextNotesMapper notesMapper,
                           ILogger <ParatextSyncRunner> logger)
 {
     _userSecrets     = userSecrets;
     _projectSecrets  = projectSecrets;
     _projectService  = projectService;
     _engineService   = engineService;
     _paratextService = paratextService;
     _realtimeService = realtimeService;
     _logger          = logger;
     _deltaUsxMapper  = deltaUsxMapper;
     _notesMapper     = notesMapper;
 }
コード例 #22
0
ファイル: AreaRenderSystem.cs プロジェクト: zunath/Ceriyo
 /// <inheritdoc />
 public AreaRenderSystem(SpriteBatch spriteBatch,
                         IEngineService engineService,
                         IModuleResourceService resourceService,
                         Camera2D camera,
                         IIsoMathService isoMathService)
     : base(Aspect.All(typeof(Renderable),
                       typeof(Map)))
 {
     _spriteBatch     = spriteBatch;
     _engineService   = engineService;
     _origin          = Vector2.Zero;
     _resourceService = resourceService;
     _camera          = camera;
     _isoMathService  = isoMathService;
 }
コード例 #23
0
 public DetectionService(
     IUserAgentService userAgentService,
     IDeviceService device,
     ICrawlerService crawler,
     IBrowserService browser,
     IEngineService engine,
     IPlatformService platform)
 {
     UserAgent = userAgentService.UserAgent;
     Device    = device;
     Crawler   = crawler;
     Browser   = browser;
     Engine    = engine;
     Platform  = platform;
 }
コード例 #24
0
ファイル: PtdaSyncRunner.cs プロジェクト: daveh551/web-xforge
 public PtdaSyncRunner(IOptions <SiteOptions> siteOptions, IRepository <UserSecret> userSecrets,
                       IRepository <SFProjectSecret> projectSecrets, ISFProjectService projectService, IEngineService engineService,
                       IParatextService paratextService, IRealtimeService realtimeService, IFileSystemService fileSystemService,
                       IDeltaUsxMapper deltaUsxMapper, IParatextNotesMapper notesMapper, ILogger <PtdaSyncRunner> logger)
 {
     _siteOptions       = siteOptions;
     _userSecrets       = userSecrets;
     _projectSecrets    = projectSecrets;
     _projectService    = projectService;
     _engineService     = engineService;
     _paratextService   = paratextService;
     _realtimeService   = realtimeService;
     _fileSystemService = fileSystemService;
     _logger            = logger;
     _deltaUsxMapper    = deltaUsxMapper;
     _notesMapper       = notesMapper;
 }
コード例 #25
0
 public ParatextSyncRunner(IOptions <SiteOptions> siteOptions, IRepository <UserEntity> users,
                           IRepository <SyncJobEntity> jobs, IRepository <SFProjectEntity> projects, IRepository <TextEntity> texts,
                           IEngineService engineService, IParatextService paratextService, IRealtimeService realtimeService,
                           IFileSystemService fileSystemService, ILogger <ParatextSyncRunner> logger)
 {
     _siteOptions       = siteOptions;
     _users             = users;
     _jobs              = jobs;
     _projects          = projects;
     _texts             = texts;
     _engineService     = engineService;
     _paratextService   = paratextService;
     _realtimeService   = realtimeService;
     _fileSystemService = fileSystemService;
     _logger            = logger;
     _deltaUsxMapper    = new DeltaUsxMapper();
 }
コード例 #26
0
ファイル: ServerNetworkService.cs プロジェクト: zunath/Ceriyo
        public ServerNetworkService(ILogger logger,
                                    IEngineService engineService,
                                    IServerSettingsService settingsService,
                                    IModuleService moduleService,
                                    IPathService pathService,
                                    IDataService dataService)
        {
            _logger               = logger;
            _engineService        = engineService;
            _settingsService      = settingsService;
            _moduleService        = moduleService;
            _pathService          = pathService;
            _dataService          = dataService;
            _usernameToConnection = new Dictionary <string, NetConnection>();
            _connectionToUsername = new Dictionary <NetConnection, string>();

            _boundPacketActions = new Dictionary <string, Tuple <Type, Action <string, PacketBase> > >();
        }
コード例 #27
0
 public SFProjectService(IRealtimeService realtimeService, IOptions <SiteOptions> siteOptions,
                         IAudioService audioService, IEmailService emailService, IRepository <SFProjectSecret> projectSecrets,
                         ISecurityService securityService, IFileSystemService fileSystemService, IEngineService engineService,
                         ISyncService syncService, IParatextService paratextService, IRepository <UserSecret> userSecrets,
                         IRepository <TranslateMetrics> translateMetrics, IStringLocalizer <SharedResource> localizer,
                         ITransceleratorService transceleratorService)
     : base(realtimeService, siteOptions, audioService, projectSecrets, fileSystemService)
 {
     _engineService         = engineService;
     _syncService           = syncService;
     _paratextService       = paratextService;
     _userSecrets           = userSecrets;
     _translateMetrics      = translateMetrics;
     _emailService          = emailService;
     _securityService       = securityService;
     _localizer             = localizer;
     _transceleratorService = transceleratorService;
 }
コード例 #28
0
ファイル: AreaEditorScreen.cs プロジェクト: zunath/Ceriyo
        public AreaEditorScreen(IEventAggregator eventAggregator,
                                IEntityFactory entityFactory,
                                IObjectMapper objectMapper,
                                IModuleDataService moduleDataService,
                                IEngineService engineService,
                                Camera2D camera)
        {
            _eventAggregator   = eventAggregator;
            _entityFactory     = entityFactory;
            _objectMapper      = objectMapper;
            _camera            = camera;
            _moduleDataService = moduleDataService;
            _engineService     = engineService;

            _eventAggregator.GetEvent <AreaOpenedEvent>().Subscribe(AreaOpened);
            _eventAggregator.GetEvent <AreaClosedEvent>().Subscribe(AreaClosed);
            _eventAggregator.GetEvent <CameraMovedEvent>().Subscribe(CameraMoved);
            _eventAggregator.GetEvent <CameraZoomedEvent>().Subscribe(CameraZoomed);
            _eventAggregator.GetEvent <CameraResetEvent>().Subscribe(CameraReset);
            _eventAggregator.GetEvent <AreaPropertiesChangedEvent>().Subscribe(AreaPropertiesChanged);
            _eventAggregator.GetEvent <TileSelectedEvent>().Subscribe(TileSelected);
        }
コード例 #29
0
        public TileSelectorViewModel(IEventAggregator eventAggregator,
                                     IModuleDataService moduleDataService,
                                     IModuleResourceService resourceService,
                                     IEngineService engineService)
        {
            _eventAggregator   = eventAggregator;
            _moduleDataService = moduleDataService;
            _resourceService   = resourceService;
            _engineService     = engineService;
            TileGridVisibility = Visibility.Hidden;

            SelectedTileBrush      = Brushes.Yellow;
            SelectedTileHeight     = _engineService.TileHeight;
            SelectedTileWidth      = _engineService.TileWidth;
            SelectedTileVisibility = Visibility.Visible;
            SelectedTileX          = 0;
            SelectedTileY          = 0;

            CellSelectedCommand = new DelegateCommand <MouseButtonEventArgs>(CellSelected);

            _eventAggregator.GetEvent <AreaOpenedEvent>().Subscribe(AreaOpened);
            _eventAggregator.GetEvent <AreaClosedEvent>().Subscribe(AreaClosed);
        }
コード例 #30
0
 public WorkflowEngine()
 {
     engineService = new EngineService();
     repository = engineService.Persistence.Repository;
 }
コード例 #31
0
 public EnginesController(IEngineService engineService)
 {
     _engineService = engineService;
 }
コード例 #32
0
ファイル: CartoViewModel.cs プロジェクト: ChampsyGnom/GeoPat
        public CartoViewModel(IDataService dataService, IEngineService engineService, ICartoService cartoService)
        {
            this.CartoService = cartoService;
            this.DataService = dataService;
            this.EngineService = engineService;
            this.Templates = new ObservableCollection<TemplateViewModel>();
            this.TemplatesView = new ListCollectionView(this.Templates);
            this.TemplatesView.CurrentChanged += TemplatesView_CurrentChanged;
            this.CreateTemplateCommand = new DelegateCommand(CreateTemplateExecute);
            this.LoadGeocodableEntityTypes();
            this.LoadTemplates();
            this.TreeTemplateContextMenuOpeningCommand = new DelegateCommand<TreeViewContextMenuOpeningBehaviorEventArg>(TreeTemplateContextMenuOpeningExecute);

        }
コード例 #33
0
 public ActivityRuntime(IEngineService services, ActivityContext context)
 {
     engineService = services;
     workItems = Persistence.GetWorkItems(context.ActivityInst.ID);
     Context = context;
 }
コード例 #34
0
 public BrowserService(IUserAgentService userAgentService,
                       IEngineService engineService)
 {
     _userAgentService = userAgentService;
     _engineService    = engineService;
 }
コード例 #35
0
 public ProcessRuntime(IEngineService services, ProcessContext context, Func<Participantor> assignParticipant)
 {
     engineService = services;
     Context = context;
     this.assignParticipant = assignParticipant;
 }
コード例 #36
0
 public WorkItemRuntime(IEngineService services, WorkItemContext context)
 {
     this.engineService = services;
     Context = context;
 }