public FishBreadcrumbService(
     MyDbContext context,
     IControllerService controllerService)
 {
     _context           = context;
     _controllerService = controllerService;
 }
Beispiel #2
0
 public CameraService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService       = fontService;
     _networkService    = networkService;
     _controllerService = controllerService;
     lastPosition       = new Vector2();
 }
Beispiel #3
0
 public SettingsViewModel(IControllerService controllerService)
 {
     _controllerService = controllerService;
     Controllers        = new ObservableCollection <IController>(_controllerService.Controllers);
     _controllerService.ControllerAdded   += ControllerService_ControllerAdded;
     _controllerService.ControllerRemoved += ControllerService_ControllerRemoved;
 }
 public CameraService(IFontService fontService, INetworkService networkService, IControllerService controllerService)
 {
     _fontService = fontService;
     _networkService = networkService;
     _controllerService = controllerService;
     lastPosition = new Vector2();
 }
Beispiel #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);
        }
Beispiel #6
0
        public EmailHandler(EmailConfig config, IControllerService controllerService)
        {
            this.controllerService = controllerService;
            client = new IdleClient(config, "GoogleHome");

            Task.Run(client.RunAsync);

            client.NewMessageArrived += MessageArrived;
        }
Beispiel #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);
        }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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;
        }
Beispiel #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";
        }
Beispiel #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";
        }
Beispiel #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;
 }
 public ExtractorController(IControllerService service, ILogger <ExtractorController> logger) : base(service, logger)
 {
 }
Beispiel #18
0
 public SystemSetController(ILogger <SystemSetController> logger, IControllerService controllerService, IActionService actionService)
 {
     this._logger            = logger;
     this._controllerService = controllerService;
     this._actionService     = actionService;
 }
 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;
 }
 public CommandsController(IControllerService controllerService, IOptions <Config> config, ILogger <CommandsController> logger)
 {
     this.controllerService = controllerService;
     this.logger            = logger;
     this.config            = config.Value;
 }
 public MovementController(IMovementRepository repository, IControllerService controllerService)
 {
     this.repository = repository;
     this.mapper     = controllerService.Mapper;
     configService   = controllerService.ConfigurationService;
 }
Beispiel #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;
 }
Beispiel #27
0
 public SegmentLeaksController(DatabaseContext context, IConfiguration config, IControllerService service)
 {
     _db      = context;
     _config  = config;
     _service = service;
 }
 public WorkoutController(IWorkoutRepository repository, IControllerService controllerService)
 {
     this.repository = repository;
     mapper          = controllerService.Mapper;
     configService   = controllerService.ConfigurationService;
 }
Beispiel #29
0
 public TempController(IDispatcherFactory dispatcherFactory, IControllerService controllerService)
 {
     this.dispatcherFactory = dispatcherFactory;
     this.controllerService = controllerService;
 }
 public MjpegService(IFontService fontService, IControllerService controllerService)
 {
     _fontService = fontService;
     _controllerService = controllerService;
 }
Beispiel #31
0
 protected BaseController(IControllerService service, ILogger <BaseController> logger)
 {
     _logger  = logger;
     _service = service;
 }
Beispiel #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;
 }