Пример #1
0
 public FishBreadcrumbService(
     MyDbContext context,
     IControllerService controllerService)
 {
     _context           = context;
     _controllerService = controllerService;
 }
Пример #2
0
 public CameraService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService       = fontService;
     _networkService    = networkService;
     _controllerService = controllerService;
     lastPosition       = new Vector2();
 }
Пример #3
0
 public SettingsViewModel(IControllerService controllerService)
 {
     _controllerService = controllerService;
     Controllers        = new ObservableCollection <IController>(_controllerService.Controllers);
     _controllerService.ControllerAdded   += ControllerService_ControllerAdded;
     _controllerService.ControllerRemoved += ControllerService_ControllerRemoved;
 }
Пример #4
0
 public CameraService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService = fontService;
     _networkService = networkService;
     _controllerService = controllerService;
     lastPosition = new Vector2();
 }
Пример #5
0
        public Controller(Type type, IControllerService controllerService = null)
        {
            _controllerService = controllerService ?? new ControllerService();

            ClassType     = type;
            Name          = _controllerService.GetControllerName(this);
            Methods       = _controllerService.GetCommandMethods(this);
            DefaultMethod = _controllerService.GetDefaultCommandMethod(this);
        }
Пример #6
0
        public EmailHandler(EmailConfig config, IControllerService controllerService)
        {
            this.controllerService = controllerService;
            client = new IdleClient(config, "GoogleHome");

            Task.Run(client.RunAsync);

            client.NewMessageArrived += MessageArrived;
        }
Пример #7
0
 protected override void OnStart(string[] args)
 {
     kernel               = new StandardKernel(new ServiceModule());
     controller           = kernel.Get <IControllerService>();
     timer1               = new Timer();
     this.timer1.Interval = 1800000; //30 Minutos
     this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.Executar);
     timer1.Enabled       = true;
     Library.WriteErroLog("Serviço iniciado");
 }
 public SparkSubmitWorker(ISubscriber subscriber,
                          IAdmissionService admission,
                          IControllerService controller,
                          ISchedulerService scheduler)
 {
     this.subscriber = subscriber;
     this.admission  = admission;
     this.controller = controller;
     this.scheduler  = scheduler;
 }
        public PeopleController(IEISService <Person> service, IControllerService controllerService, IServiceWrapper services, IHostingEnvironment environment) : base(service)
        {
            _environment       = environment;
            _controllerService = controllerService;
            _services          = services;
            HttpResponseMessage response = _services.Roles.GetResponse(ApiUrl + "/api/Employee/Designations");
            string stringData            = response.Content.ReadAsStringAsync().Result;

            rolesList = JsonConvert.DeserializeObject <List <Role> >(stringData);
        }
Пример #10
0
 public ArgumentProcessorService(ISettings settings = null,
                                 IControllerService controllerService = null,
                                 IArgumentService argService          = null,
                                 IConsoleService console = null)
 {
     _settings          = settings ?? new Settings();
     _controllerService = controllerService ?? new ControllerService();
     _argService        = argService ?? new ArgumentService();
     _console           = console ?? new ConsoleService();
 }
Пример #11
0
 public Processor(ISettings settings = null,
                  IControllerService controllerService = null,
                  IConsoleService console = null,
                  IArgumentProcessorService argumentProcessor = null,
                  ILooper looper = null)
 {
     _settings          = settings ?? new Settings();
     _controllerService = controllerService ?? new ControllerService();
     _console           = console ?? new ConsoleService();
     _argumentProcessor = argumentProcessor ?? new ArgumentProcessorService();
     _looper            = looper ?? new Looper();
 }
Пример #12
0
        public MainPresenter(IKernel kernel, IMainView mainMenu, IOperatorService operatorService, IControllerService controllerService)
        {
            _mainView          = mainMenu;
            _kernel            = kernel;
            _operatorService   = operatorService;
            _controllerService = controllerService;

            _mainView.GoToSettings += _GoToSettings;
            _mainView.AddMan       += _AddMan;
            _mainView.MoveUpABit   += _MoveUp;
            _mainView.MoveDownABit += _MoveDown;

            _operatorService.MoveUp   += _MoveUp;
            _operatorService.MoveDown += _MoveDown;
        }
Пример #13
0
        public MainGame()
        {
            //var input = new InputManager(Services, Window.Handle);
            IKernel kernel = new StandardKernel();
            kernel.Load(Assembly.GetExecutingAssembly());
            var elementList = kernel.GetAll<IRoverElement>();
            _controllerService = kernel.Get<IControllerService>();
            _controllerService.Init(Services, Window.Handle);
            Components.Add(_controllerService.InputManager);
            _roverElementList = elementList.ToList();
            _graphics = new GraphicsDeviceManager(this);
            //_mjpegService = kernel.Get<IMjpegService>();
            //_networkService = kernel.Get<INetworkService>();
            //List<INetworkListener> networkListenerList = kernel.Get<List<INetworkListener>>();
            //_networkService.NetworkListenerList = networkListenerList;
            //_batteryControlService = kernel.Get<IBatteryControlService>();

            //_headlightService = kernel.Get<IHeadlightService>();// new HeadlightService(_networkService);
            Content.RootDirectory = "Content";
        }
Пример #14
0
        public MainGame()
        {
            //var input = new InputManager(Services, Window.Handle);
            IKernel kernel = new StandardKernel();

            kernel.Load(Assembly.GetExecutingAssembly());
            var elementList = kernel.GetAll <IRoverElement>();

            _controllerService = kernel.Get <IControllerService>();
            _controllerService.Init(Services, Window.Handle);
            Components.Add(_controllerService.InputManager);
            _roverElementList = elementList.ToList();
            _graphics         = new GraphicsDeviceManager(this);
            //_mjpegService = kernel.Get<IMjpegService>();
            //_networkService = kernel.Get<INetworkService>();
            //List<INetworkListener> networkListenerList = kernel.Get<List<INetworkListener>>();
            //_networkService.NetworkListenerList = networkListenerList;
            //_batteryControlService = kernel.Get<IBatteryControlService>();

            //_headlightService = kernel.Get<IHeadlightService>();// new HeadlightService(_networkService);
            Content.RootDirectory = "Content";
        }
Пример #15
0
 public MjpegService(IFontService fontService, IControllerService controllerService)
 {
     _fontService       = fontService;
     _controllerService = controllerService;
 }
 public FitnessPathController(IFitnessPathRepository fitnessPathRepository, IControllerService controllerService)
 {
     this.fitnessPathRepository = fitnessPathRepository;
     this.configService         = controllerService.ConfigurationService;
     this.mapper = controllerService.Mapper;
 }
Пример #17
0
 public ExtractorController(IControllerService service, ILogger <ExtractorController> logger) : base(service, logger)
 {
 }
Пример #18
0
 public SystemSetController(ILogger <SystemSetController> logger, IControllerService controllerService, IActionService actionService)
 {
     this._logger            = logger;
     this._controllerService = controllerService;
     this._actionService     = actionService;
 }
Пример #19
0
 public MotorService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService = fontService;
     _networkService = networkService;
     _controllerService = controllerService;
 }
 public SensorHistoryController(DatabaseContext context, IConfiguration config, IControllerService service)
 {
     _db      = context;
     _config  = config;
     _service = service;
 }
 public FitnessPathHistoryController(IFitnessPathHistoryRepository repository, IControllerService controllerService)
 {
     this.repository    = repository;
     this.configService = controllerService.ConfigurationService;
     this.mapper        = controllerService.Mapper;
 }
 public CustomFilter(IControllerService controllerService)
 {
     _controllerService = controllerService;
 }
Пример #23
0
 public CommandsController(IControllerService controllerService, IOptions <Config> config, ILogger <CommandsController> logger)
 {
     this.controllerService = controllerService;
     this.logger            = logger;
     this.config            = config.Value;
 }
Пример #24
0
 public MovementController(IMovementRepository repository, IControllerService controllerService)
 {
     this.repository = repository;
     this.mapper     = controllerService.Mapper;
     configService   = controllerService.ConfigurationService;
 }
Пример #25
0
 public MotorService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService       = fontService;
     _networkService    = networkService;
     _controllerService = controllerService;
 }
 public UserProfileController(IUserProfileRepository userProfileRepository, IControllerService controllerService)
 {
     this.userProfileRepository = userProfileRepository;
     mapper        = controllerService.Mapper;
     configService = controllerService.ConfigurationService;
 }
Пример #27
0
 public SegmentLeaksController(DatabaseContext context, IConfiguration config, IControllerService service)
 {
     _db      = context;
     _config  = config;
     _service = service;
 }
Пример #28
0
 public WorkoutController(IWorkoutRepository repository, IControllerService controllerService)
 {
     this.repository = repository;
     mapper          = controllerService.Mapper;
     configService   = controllerService.ConfigurationService;
 }
Пример #29
0
 public TempController(IDispatcherFactory dispatcherFactory, IControllerService controllerService)
 {
     this.dispatcherFactory = dispatcherFactory;
     this.controllerService = controllerService;
 }
Пример #30
0
 public MjpegService(IFontService fontService, IControllerService controllerService)
 {
     _fontService = fontService;
     _controllerService = controllerService;
 }
Пример #31
0
 protected BaseController(IControllerService service, ILogger <BaseController> logger)
 {
     _logger  = logger;
     _service = service;
 }
Пример #32
0
 public AdminDetailsController(IEISService <Person> service, IControllerService controllerService, IServiceWrapper services, IHostingEnvironment environment) : base(service)
 {
     _environment       = environment;
     _controllerService = controllerService;
     _services          = services;
 }
 public ReadingsController(DatabaseContext context, IConfiguration config, IControllerService service)
 {
     _db      = context;
     _config  = config;
     _service = service;
 }
 public WorkoutHistoryController(IWorkoutHistoryRepository repository, IControllerService controllerService)
 {
     this.repository    = repository;
     this.configService = controllerService.ConfigurationService;
     this.mapper        = controllerService.Mapper;
 }