public WorkerServiceController(WorkerServicesManager manager, String serviceName, IWorkerService instance, IWorkerServiceRecoveryPolicy recoveryPolicy)
 {
     _instance = instance;
     _manager = manager;
     ServiceName = serviceName;
     RecoveryPolicy = recoveryPolicy;
 }
 public ActivitySigninController(IActivitySigninService serv, 
     IWorkerService wServ,
     LookupCache lc)
 {
     this.serv = serv;
     this.wServ = wServ;
     this.lcache = lc;
 }
 public WorkerSigninController(IWorkerSigninService workerSigninService, 
     IWorkerService workerService,
     LookupCache lc)
 {
     this._serv = workerSigninService;
     this._wServ = workerService;
     this.lcache = lc;
 }
Esempio n. 4
0
 public WorkerController(IWorkerService workerService, 
     IPersonService personService,
     IImageService  imageServ,
     IWorkerCache wc)
 {
     this.wcache = wc;
     this.serv = workerService;
     this.imageServ = imageServ;
 }
Esempio n. 5
0
 public ProjectWorkerWorkingTimeManager(IProjectWorkerWorkingTimeDal projectWorkerWorkingTimeDal, IProjectWorkerService projectWorkerService, IProjectSectionDepartmentService projectSectionDepartmentService, IProjectSectionService projectSectionService, IProjectService projectService, IWorkerService workerService, IMapper mapper, ISalaryService salaryService)
 {
     _projectWorkerWorkingTimeDal     = projectWorkerWorkingTimeDal;
     _projectWorkerService            = projectWorkerService;
     _projectSectionDepartmentService = projectSectionDepartmentService;
     _projectSectionService           = projectSectionService;
     _projectService = projectService;
     _workerService  = workerService;
     _mapper         = mapper;
     _salaryService  = salaryService;
 }
Esempio n. 6
0
 public WorkerController(IWorkerService workerService,
                         IPersonService personService,
                         IImageService imageServ,
                         IDefaults def,
                         IMapper map)
 {
     this.serv      = workerService;
     this.imageServ = imageServ;
     this.map       = map;
     this.def       = def;
 }
Esempio n. 7
0
        public ConversationStateMachine(ITelegramBotClient telegramBotClient, IWorkerService workerService,
                                        ILogger <ConversationStateMachine> logger, ChatId chatId)
        {
            _telegramBotClient = telegramBotClient;
            _workerService     = workerService;
            _logger            = logger;
            _chatId            = chatId;

            _callbackQueryHandlers = new Dictionary <Guid, Func <CallbackQuery, Task> >();
            _files = new List <string>();
        }
Esempio n. 8
0
 public ActivitySigninController(IActivitySigninService serv,
                                 IWorkerService wServ,
                                 LookupCache lc,
                                 IDefaults def,
                                 IMapper map)
 {
     this.serv   = serv;
     this.wServ  = wServ;
     this.lcache = lc;
     this.map    = map;
     this.def    = def;
 }
Esempio n. 9
0
 public AbstractWorkerController(
     ApiSettings settings,
     ILogger <AbstractWorkerController> logger,
     ITransactionCoordinator transactionCoordinator,
     IWorkerService workerService,
     IApiWorkerModelMapper workerModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.WorkerService     = workerService;
     this.WorkerModelMapper = workerModelMapper;
 }
Esempio n. 10
0
 public WorkerController(IWorkerService workerService,
                         IImageService imageServ,
                         IDefaults def,
                         IMapper map,
                         IModelBindingAdaptor adaptor)
 {
     serv           = workerService;
     this.imageServ = imageServ;
     this.map       = map;
     _adaptor       = adaptor;
     this.def       = def;
 }
Esempio n. 11
0
 public WorkerSigninController(IWorkerSigninService workerSigninService,
                               IWorkerService workerService,
                               LookupCache lc,
                               IDefaults def,
                               IMapper map)
 {
     this._serv  = workerSigninService;
     this._wServ = workerService;
     this.lcache = lc;
     this.map    = map;
     this.def    = def;
 }
Esempio n. 12
0
 public UserController(IUserService userService
                       , IRolesService rolesService
                       , IWorkerService workerService
                       , ISubscribeService subscribeService
                       , IProjectService projectService)
 {
     this.userService      = userService;
     this.rolesService     = rolesService;
     this.workerService    = workerService;
     this.subscribeService = subscribeService;
     this.projectService   = projectService;
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="woServ">Work Order service</param>
 /// <param name="wServ">Worker service</param>
 /// <param name="wrServ">Worker request service</param>
 public WorkOrderController(IWorkOrderService woServ,
                            IWorkerService wServ,
                            IWorkerRequestService wrServ,
                            IDefaults def,
                            IMapper map)
 {
     this.woServ = woServ;
     this.wServ  = wServ;
     this.wrServ = wrServ;
     this.map    = map;
     this.def    = def;
 }
 public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                 IWorkerService workerService,
                                 IWorkOrderService workOrderService,
                                 IWorkerSigninService signinService,
                                 ILookupCache lc)
 {
     this.waServ = workAssignmentService;
     this.wkrServ = workerService;
     this.woServ = workOrderService;
     this.wsiServ = signinService;
     this.lcache = lc;
 }
Esempio n. 15
0
        static Program()
        {
            var serviceCollection = new ServiceCollection();

            ConfigureServices(serviceCollection);

            var serviceProvider = serviceCollection.BuildServiceProvider();

            configs       = serviceProvider.GetService <IOptions <Configurations> >();
            _inputHandler = serviceProvider.GetService <IWorkerService>();
            _writer       = serviceProvider.GetService <ITextWriter>();
        }
Esempio n. 16
0
 //
 public WorkerSigninService(
     IWorkerSigninRepository repo,
     IWorkerService wServ,
     IImageService iServ,
     IWorkerRequestService wrServ,
     IUnitOfWork uow,
     IMapper map,
     IConfigService cfg)
     : base(repo, wServ, iServ, wrServ, uow, map, cfg)
 {
     this.logPrefix = "WorkerSignin";
 }
Esempio n. 17
0
 public EFxService(ILogService logService, IWorkerService workerService, ITradingDao tradingDao, IAppSettingsService appSettingsService)
 {
     _logService = logService;
     _workerService = workerService;
     _tradingDao = tradingDao;
     _appSettingsService = appSettingsService;
     InitializeComponent();
     ServiceName = ConfigurationManager.AppSettings["serviceName"];
     _immediateExecutionTimer = new Timer { AutoReset = false, Interval = 1 };
     _immediateExecutionTimer.Elapsed += Run;
     _timer = new Timer { AutoReset = true, Interval = Interval };
     _timer.Elapsed += Run;
 }
Esempio n. 18
0
 public WorkerController(IPostAProjectService postservice, IskillService skillservice, IProjectSkillService proskillservice, IResponseToAJobService responseservice, IUserInfoService userservice, IWorkerService workerService, ISelectedWorkerService selectedWorkerService, IRatingWorkerService ratingWorkerService, IWorkerSkillService workerSkillService, IRatingOwnerService ratingOwnerService)
 {
     _postservice           = postservice;
     _skillservice          = skillservice;
     _proskillservice       = proskillservice;
     _responseservice       = responseservice;
     _userservice           = userservice;
     _workerService         = workerService;
     _selectedWorkerService = selectedWorkerService;
     _ratingWorkerService   = ratingWorkerService;
     _workerSkillService    = workerSkillService;
     _ratingOwnerService    = ratingOwnerService;
 }
Esempio n. 19
0
        public House(IWood wood, IBuilder builder, ITownHall townHall, IWorkerService workerService, IStoryService storyService, IHyperState hyperState) : base(builder, hyperState)
        {
            _wood          = wood;
            _builder       = builder;
            _townHall      = townHall;
            _workerService = workerService;
            _storyService  = storyService;

            BuildTime = 30_000;

            HyperState.OnChange += HyperStateOnOnChange;
            _timer = new Timer(InhabitantsCallback, null, 30_000 / HyperState.DivideBy, 30_000 / HyperState.DivideBy);
        }
Esempio n. 20
0
 public MovieController(IMovieService movieService, ICinemaLocationService cinemaLocationService, IPDFService pdfService, ITicketService ticketService, IWorkerService workerService, ITicketCheckService ticketcheckService, ICheckService checkService, IShowingService showingService, UserManager <Worker> userManager, SignInManager <Worker> signInManager)
 {
     this.workerService         = workerService;
     this.cinemaLocationService = cinemaLocationService;
     this.movieService          = movieService;
     this.pdfService            = pdfService;
     this.ticketcheckService    = ticketcheckService;
     this.checkService          = checkService;
     this.ticketService         = ticketService;
     this.showingService        = showingService;
     this.userManager           = userManager;
     this.signInManager         = signInManager;
 }
Esempio n. 21
0
        public static void Main(string[] args)
        {
            ServiceProvider serviceProvider = new ServiceCollection()
                                              .AddSingleton <IWorkerService, WorkerService>()
                                              .BuildServiceProvider();

            IWorkerService workerServ = serviceProvider.GetService <IWorkerService>();

            workerServ.GetResponse();

            Console.WriteLine(" Press [enter] to exit.");
            Console.ReadLine();
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="woServ">Work Order service</param>
 /// <param name="waServ">Work Assignment service</param>
 /// <param name="eServ">Employer service</param>
 /// <param name="wServ">Worker service</param>
 /// <param name="wrServ">Worker request service</param>
 /// <param name="lcache">Lookup cache</param>
 public HirerWorkOrderController(IWorkOrderService woServ,
                            IWorkAssignmentService waServ,
                            IEmployerService eServ,
                            IWorkerService wServ,
                            IWorkerRequestService wrServ,
                            ILookupCache lcache)
 {
     this.woServ = woServ;
     this.eServ = eServ;
     this.wServ = wServ;
     this.waServ = waServ;
     this.wrServ = wrServ;
     this.lcache = lcache;
 }
Esempio n. 23
0
 public WorkerSigninService(
     IWorkerSigninRepository repo,
     IWorkerService wServ,
     IImageService iServ,
     IWorkerRequestService wrServ,
     IUnitOfWork uow,
     IMapper map,
     IConfigService cfg,
     ITenantService tenantService
     ) : base(repo, wServ, iServ, wrServ, uow, map, cfg)
 {
     logPrefix          = "WorkerSignin";
     ClientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }
Esempio n. 24
0
        public LoginViewModel(ApplicationViewModel application, ILoginService loginService, IWorkerService workerService, IMessageService messageService)
        {
            Argument.IsNotNull(() => application);
            Argument.IsNotNull(() => loginService);
            Argument.IsNotNull(() => workerService);
            Argument.IsNotNull(() => messageService);

            this.application    = application;
            this.loginService   = loginService;
            this.workerService  = workerService;
            this.messageService = messageService;

            LoginCommand = new TaskCommand(OnLoginCommandExecuteAsync, OnLoginCommandCanExecute);
        }
Esempio n. 25
0
 public WorkOrderController(IWorkOrderService woServ, 
                            IWorkAssignmentService workAssignmentService,
                            IEmployerService employerService,
                            IWorkerService workerService,
                            IWorkerRequestService requestService, 
                            ILookupCache lc)
 {
     this.woServ = woServ;
     this.eServ = employerService;
     this.wServ = workerService;
     this.waServ = workAssignmentService;
     this.wrServ = requestService;
     this.lcache = lc;
 }
 public IWorkerServiceController RegisterService(string serviceName, IWorkerService instance, IWorkerServiceRecoveryPolicy defaultRecoveryPolicy)
 {
     Assert.EmptyString(serviceName, "serviceName");
     Assert.NullArgument(instance, "instance");
     lock (__lockObject)
     {
         if (GetService(serviceName, false) != null)
             throw new InvalidOperationException("Já existe um worker service registrado com este nome: " + serviceName);
         var controller = new WorkerServiceController(this, serviceName, instance,
             defaultRecoveryPolicy ?? new DefaultWorkerRecoveryPolicy());
         _services[controller.ServiceName] = controller;
         ScheduleProcess(controller);
     }
     return _services[serviceName];
 }
 public ActivitySigninService(
     IActivitySigninRepository asiRepo,
     IWorkerService wServ,
     IPersonService pServ,
     IImageService iServ,
     IWorkerRequestService wrServ,
     IUnitOfWork uow,
     IMapper map,
     IConfigService cfg)
     : base(asiRepo, wServ, iServ, wrServ, uow, map, cfg)
 {
     this.logPrefix = "ActivitySignin";
     this.pServ     = pServ;
     this.asiRepo   = asiRepo;
 }
Esempio n. 28
0
 public ActivitySigninService(
     IActivitySigninRepository asiRepo,
     IWorkerService wServ,
     IPersonService pServ,
     IImageService iServ,
     IWorkerRequestService wrServ,
     IUnitOfWork uow,
     IMapper map,
     IConfigService cfg,
     ITenantService tenantService
     ) : base(asiRepo, wServ, iServ, wrServ, uow, map, cfg)
 {
     this.logPrefix     = "ActivitySignin";
     this.pServ         = pServ;
     ClientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }
 public IWorkerServiceController RegisterService(string serviceName, IWorkerService instance, IWorkerServiceRecoveryPolicy defaultRecoveryPolicy)
 {
     Assert.EmptyString(serviceName, "serviceName");
     Assert.NullArgument(instance, "instance");
     lock (__lockObject)
     {
         if (GetService(serviceName, false) != null)
         {
             throw new InvalidOperationException("Já existe um worker service registrado com este nome: " + serviceName);
         }
         var controller = new WorkerServiceController(this, serviceName, instance,
                                                      defaultRecoveryPolicy ?? new DefaultWorkerRecoveryPolicy());
         _services[controller.ServiceName] = controller;
         ScheduleProcess(controller);
     }
     return(_services[serviceName]);
 }
Esempio n. 30
0
 public WorkerController(
     ApiSettings settings,
     ILogger <WorkerController> logger,
     ITransactionCoordinator transactionCoordinator,
     IWorkerService workerService,
     IApiWorkerModelMapper workerModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            workerService,
            workerModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
Esempio n. 31
0
        public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                        IWorkerService workerService,
                                        IWorkOrderService workOrderService,
                                        IWorkerSigninService signinService,
                                        ILookupCache lc,
                                        IDefaults def,
                                        IMapper map)

        {
            this.waServ  = workAssignmentService;
            this.wkrServ = workerService;
            this.woServ  = workOrderService;
            this.wsiServ = signinService;
            this.lcache  = lc;
            this.map     = map;
            this.def     = def;
        }
Esempio n. 32
0
 //
 //
 protected SigninServiceBase(
     IRepository <T> repo,
     IWorkerService wServ,
     IImageService iServ,
     IWorkerRequestService wrServ,
     IUnitOfWork uow,
     IMapper map,
     IConfigService cfg)
     : base(repo, uow)
 {
     this.wServ     = wServ;
     this.wrServ    = wrServ;
     this.iServ     = iServ;
     this.map       = map;
     this.logPrefix = "SigninServiceBase";
     this.cfg       = cfg;
 }
Esempio n. 33
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="waServ">Work Assignment service</param>
 /// <param name="uow">Unit of Work</param>
 public WorkOrderService(IWorkOrderRepository repo,
                         IWorkAssignmentService waServ,
                         ITransportProvidersService tpServ,
                         IWorkerRequestService wrServ,
                         IWorkerService wServ,
                         ILookupRepository lRepo,
                         IUnitOfWork uow,
                         IMapper map,
                         IConfigService cfg) : base(repo, uow)
 {
     this.waServ    = waServ;
     this.wrServ    = wrServ;
     this.wServ     = wServ;
     this.map       = map;
     this.lRepo     = lRepo;
     this.cfg       = cfg;
     this.tpServ    = tpServ;
     this.logPrefix = "WorkOrder";
 }
        public RemoteCodeSessionManager(IHostingEnvironment henv, IClientService clientservice)
        {
            env           = henv;
            clientService = clientservice;
            listener      = new WorkerTcpListener(IPAddress.Any, 2000);
            sessions      = new List <RemoteCodeSession>();

            listener.WorkerConnected             += Listener_WorkerConnected;
            listener.WorkerCompletedBuild        += Listener_WorkerCompletedBuild;
            listener.WorkerExecutionStateChanged += Listener_WorkerExecutionState;

            if (!listener.IsListening)
            {
                bool ok = listener.StartListening();
                if (!ok)
                {
                    throw new ApplicationException($"Listener failed to start");
                }
            }
            clientService.Connect();
        }
Esempio n. 35
0
        public SearchButton()
        {
            InitializeComponent();
            _oa = new DoubleAnimation
            {
                From     = SearchBox.Width,
                To       = 200,
                Duration = TimeSpan.FromSeconds(0.2)
            };
            _oc = new DoubleAnimation
            {
                From     = SearchScopeBox.Width,
                To       = 100,
                Duration = TimeSpan.FromSeconds(0.2)
            };
            IKernel k = new StandardKernel(new ServiceModule("CompanyConnection"), new MainModule());

            deps  = k.Get <IDepartmentService>();
            works = k.Get <IWorkerService>();
            stafs = k.Get <IStaffService>();
            projs = k.Get <IProjectService>();
        }
Esempio n. 36
0
 public AdminTablesController(CinemaContext context, ITicketCheckService ticketCheckService, IFoodcourtCheckProductService foodcourtCheckProductService, IFoodcourtCheckService foodcourtCheckService, ICheckService checkService, ITicketService ticketService, ICinemaLocationService cinemaLocationService, IFoodProductsService foodProductsService, ITechnologyService technologyService, ICityService cityService, IFoodAmountService foodAmountService, ICinemaHallService cinemaHallService, IDirectorService directorService, IWorkerService workerService, ICountryOfOriginService countryOfOriginService, IMovieService movieService, IGenreService genreService, IShowingService showingService, UserManager <Worker> userManager, SignInManager <Worker> signInManager)
 {
     this.foodProductsService          = foodProductsService;
     this.directorService              = directorService;
     this.technologyService            = technologyService;
     this.cityService                  = cityService;
     this.foodAmountService            = foodAmountService;
     this.cinemaHallService            = cinemaHallService;
     this.context                      = context;
     this.ticketCheckService           = ticketCheckService;
     this.foodcourtCheckProductService = foodcourtCheckProductService;
     this.foodcourtCheckService        = foodcourtCheckService;
     this.checkService                 = checkService;
     this.ticketService                = ticketService;
     this.cinemaLocationService        = cinemaLocationService;
     this.countryOfOriginService       = countryOfOriginService;
     this.movieService                 = movieService;
     this.workerService                = workerService;
     this.genreService                 = genreService;
     this.showingService               = showingService;
     this.userManager                  = userManager;
     this.signInManager                = signInManager;
 }
Esempio n. 37
0
 /// <summary>
 /// Business logic object for WorkOrder record management. Contains logic specific
 /// to processing work orders, and not necessarily related to a web application.
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="waServ">Work Assignment service</param>
 /// <param name="tpServ"></param>
 /// <param name="wrServ"></param>
 /// <param name="wServ"></param>
 /// <param name="lRepo"></param>
 /// <param name="uow">Unit of Work</param>
 /// <param name="map"></param>
 /// <param name="cfg"></param>
 /// <param name="tenantService"></param>
 public WorkOrderService(IWorkOrderRepository repo,
                         IWorkAssignmentService waServ,
                         ITransportProvidersService tpServ,
                         IWorkerRequestService wrServ,
                         IWorkerService wServ,
                         ILookupRepository lRepo,
                         IUnitOfWork uow,
                         IMapper map,
                         IConfigService cfg,
                         ITenantService tenantService
                         ) : base(repo, uow)
 {
     this.repo           = repo;
     this.waServ         = waServ;
     this.wrServ         = wrServ;
     this.wServ          = wServ;
     this.map            = map;
     this.lRepo          = lRepo;
     this.cfg            = cfg;
     this.tpServ         = tpServ;
     this.logPrefix      = "WorkOrder";
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }
Esempio n. 38
0
 private static void RunUserControlled(string[] args, ILogService logService, IWorkerService workerService, ITradingDao tradingDao, IAppSettingsService appSettingsService)
 {
     var eFxService = new EFxService(logService, workerService, tradingDao, appSettingsService);
     eFxService.StartService();
 }
 public WorkersController(IWorkerService workerService)
 {
     _workerService = workerService;
 }
Esempio n. 40
0
 // creates service definition that can be registered with a server
 public static ServerServiceDefinition BindService(IWorkerService serviceImpl)
 {
   return ServerServiceDefinition.CreateBuilder(__ServiceName)
       .AddMethod(__Method_RunServer, serviceImpl.RunServer)
       .AddMethod(__Method_RunClient, serviceImpl.RunClient).Build();
 }