public PosController(IPosService posService, IPosApplyService posApplyService, IMpUserService mpUserService, IPosAuthService posAuthService) { this._posService = posService; this._posApplyService = posApplyService; _mpUserService = mpUserService; _posAuthService = posAuthService; }
private void CreateWaiterClient() { waiterClient = DependencyService.Get <IWaiterClient>().GetWaiterClient(endpointIpAddressPart1 + waiterIpAddressPart2, new TimeSpan(0, 0, 10)); int pingResult = 0; try { pingResult = waiterClient.Ping(0); } catch (Exception ex) { ServiceCallConfig = ServiceCallConfigType.AllServiceCallsOff; ServerConnectionProblem = true; } if (pingResult == 10) { waiterClient = DependencyService.Get <IWaiterClient>().GetWaiterClient(endpointIpAddressPart1 + waiterIpAddressPart2, new TimeSpan(0, 10, 0)); } //waiterClient = new PosServiceClient( // new BasicHttpBinding(), // new EndpointAddress(endpointIpAddressPart1 + waiterIpAddressPart2)); //waiterClient.Endpoint.Binding.SendTimeout = new TimeSpan(0, 10, 0); }
char?NextChar() { var c = _pos.Current; _pos = _pos.MoveRight(); return(c); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, IPhoebusService _phoebusService, IIntermeioService _intermeioService, IAnaliseService _analiseService, IPosService _posService, IExtratoService _extratoService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } // app.UseHttpsRedirection(); app.UseHangfireDashboard(); app.UseCors(x => x.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader()); app.UseAuthentication(); app.UseMvc(); #region Background Jobs HangFire BackgroundJob.Schedule(() => _phoebusService.RequestPhoebus(DateTime.Now, "00:00:00", "23:59:59"), TimeSpan.FromMinutes(60)); RecurringJob.AddOrUpdate(() => _intermeioService.GetAllBaseIntermeio(), Cron.Daily(12, 30)); RecurringJob.AddOrUpdate(() => _analiseService.ValidationAnalise(), Cron.Daily(12, 30)); RecurringJob.AddOrUpdate(() => _posService.RequestPosByIntermeio(), Cron.Daily(12, 30)); RecurringJob.AddOrUpdate(() => _extratoService.ValidationAluguel(), Cron.Daily(12, 30)); #endregion }
public PosController(IPosAuthService posAuthService, IPosApplyService posApplyService, IMobileCodeService mobileCodeService, IPosService posService) { _posAuthService = posAuthService; _posApplyService = posApplyService; _mobileCodeService = mobileCodeService; _posService = posService; }
public FileService(IPosDataService posDataService, IPosColumnMapService posColumnMapService, IUploadLogService uploadLogSerivice, ILoginService loginService, FileAdapterFactory fileAdapterFactory, IPosService posService, ICommonFileService commonFileService) { this._posDataService = posDataService; this._posColumnMapService = posColumnMapService; this._uploadLogService = uploadLogSerivice; this._loginService = loginService; this._fileAdapterFactory = fileAdapterFactory; this._posService = posService; this._commonFileService = commonFileService; }
public LoadTestAppController(IPartnerService partnerService, IPosService posService, IProductService productService, IHttpContextAccessor httpContextAccessor, IUtilityService utilityService , IViewRenderService viewRenderService) { _partnerService = partnerService; _posService = posService; _productService = productService; _httpContextAccessor = httpContextAccessor; _utilityService = utilityService; _viewRenderService = viewRenderService; }
public MainOrderVm(IBackPreviousVm backPreviousVm, ISearchNewPhoneVm searchNewPhone, IFranchiseContainerVm franchiseContainer, IClientsListVm clientsList, IAddressListVm addressList, IOrderSummaryVm orderSummary, IOrderPosVm orderPosVm, ISendOrderVm sendOrder, IMainOrderService orderService, IPosService posService, IStoreAddressService storeAddressService, ILastOrderFoVm lastOrderFo) { BackPrevious = backPreviousVm; SearchNewPhone = searchNewPhone; Franchises = franchiseContainer; ClientsList = clientsList; AddressList = addressList; OrderPos = orderPosVm; SendOrder = sendOrder; clientsList.ValidateModel = orderService.ValidateModel; addressList.ValidateModel = orderService.ValidateModel; orderPosVm.ValidateModel = orderService.ValidateModel; sendOrder.ValidateModel = orderService.ValidateModel; _orderService = orderService; _posService = posService; _storeAddressService = storeAddressService; _storeAddressService.OrderService = orderService; _lastOrderFo = lastOrderFo; orderSummary.OrderService = orderService; OrderSummary = orderSummary; sendOrder.OrderService = orderService; clientsList.SetOrderModel(() => orderService.OrderModel); addressList.SetOrderModel(() => orderService.OrderModel); _dicTabItems = new Dictionary <int, IUcViewModel> { { SharedConstants.Client.ORDER_TAB_PHONE, _searchNewPhone }, { SharedConstants.Client.ORDER_TAB_FRANCHISE, _franchises }, { SharedConstants.Client.ORDER_TAB_CLIENTS, _clientsList }, { SharedConstants.Client.ORDER_TAB_ORDER, _orderPos }, { SharedConstants.Client.ORDER_TAB_DELIVERY, _sendOrder } }; LstChildren.AddRange(_dicTabItems.Values); foreach (var wizard in LstChildren) { wizard.NextStep += GoNextStep; } LstChildren.Add(_backPrevious); LstChildren.Add(_addressList); LstChildren.Add(_orderSummary); RxApp.MainThreadScheduler.Schedule(_ => SelectedTab = SharedConstants.Client.ORDER_TAB_PHONE); InitializeServices(); }
public PositionController() { service = new PosService(); }
public App(IPosService posService, ILogger <App> logger) { _posService = posService; _logger = logger; }
public ParseService(IPosService parsePosService) { _pos = parsePosService; }
public PosController(IPosRepository posRepository, IPosService posService) { _posRepository = posRepository; _posService = posService; }
public PosController(IPosService service, ILogger <PosController> logger) { _service = service; _logger = logger; }
public PosController(IPosService posService, ILogger <PosController> logger, IMapper mapper) { this.posService = posService; this.logger = logger; this.mapper = mapper; }
private List <string> ValidCurrencies(IPosService pos) { return(pos.GetAllValidCurrencies()); }