Пример #1
0
 public OrganisationService(IOrganisationRepository organisationRepository, IOrganisationCounterRepository organisationCounterRepository, IEmailService emailService, IQRCodeService qrCodeService)
 {
     _organisationRepository        = organisationRepository;
     _organisationCounterRepository = organisationCounterRepository;
     _emailService  = emailService;
     _qrCodeService = qrCodeService;
 }
Пример #2
0
        static void Main(string[] args)
        {
            int port = AppConfig.LISTEN_PORT;

            qrCodeService    = ServiceLocator.GetService <IQRCodeService>();
            server           = new ServerCommunicatorTCP(port);
            server.Error    += Server_Error;
            server.Received += Server_Received;
            server.Notify   += Server_Notify;
            server.Start();

            httpCommunicator           = new HTTPCommunicator();
            httpCommunicator.Error    += HttpCommunicator_Error;;
            httpCommunicator.Received += HttpCommunicator_Received;


            scaner            = new ClientCommunitorTCP();
            scaner.Received  += new ReceiveDelegate(Scaner_Received);
            scaner.OnConnect += new ConnectedDelegate(Scaner_ConnectedNotify);
            scaner.Error     += new EventHandler <DyEventArgs>(scanerError);
            connectScaner();
            Console.WriteLine("Service has already started!");


            Console.ReadLine();
        }
 public QRListGenerator(
     IQRCodeService qrCodeService,
     IStringLocalizer <SharedResource> localizer,
     IEncryptionService encryptionService,
     IConverter converter)
 {
     this.qrCodeService     = qrCodeService;
     this.localizer         = localizer;
     this.encryptionService = encryptionService;
     this.converter         = converter;
 }
Пример #4
0
 public MainViewModel()
 {
     qrCodeService       = new QRCodeService();
     CreateQRCodeCommand = new DelegateCommand(CreateQRCode, CanCreateQRCode)
                           .ObservesProperty(() => QrCodeContent);
     SaveQRCodeCommand = new DelegateCommand(SaveQRCode, CanSaveQRCode)
                         .ObservesProperty(() => QrCodeImage);
     LoadQRCodeCommand            = new DelegateCommand(LoadQRCode);
     CopyQrCodeToClipboardCommand = new DelegateCommand(CopyToClipboard, CanCopyToClipboard)
                                    .ObservesProperty(() => QrCodeImage);
     PasteQrCodeFromClipboardCommand = new DelegateCommand(PasteFromClipboard);
 }
Пример #5
0
 public OrganisationService(IOrganisationRepository organisationRepository, IOrganisationAccessLogRepository organisationAccessLogRepository,
                            IEmailService emailService, IQRCodeService qrCodeService, IWalletRepository walletRepository, IWalletService walletService,
                            ISessionService sessionService, ISmsService smsService, ICryptoService cryptoService)
 {
     _organisationRepository          = organisationRepository;
     _organisationAccessLogRepository = organisationAccessLogRepository;
     _emailService     = emailService;
     _qrCodeService    = qrCodeService;
     _walletRepository = walletRepository;
     _walletService    = walletService;
     _sessionService   = sessionService;
     _smsService       = smsService;
     _cryptoService    = cryptoService;
 }
Пример #6
0
 public ReservationService(IUnitOfWork unit, IMapper mapper, UserManager <ApplicationUser> userManager, IScreeningService screeningService, IConfiguration configuration, IAuthService authService, IQRCodeService qRCodeService, IEmailSender emailSender)
 {
     _unit             = unit;
     _mapper           = mapper;
     _reservationRepo  = unit.Reservations;
     _screeningRepo    = unit.Screenings;
     _userRepo         = unit.Users;
     _seatRepo         = unit.Repository <Seat, int>();
     _userManager      = userManager;
     _screeningService = screeningService;
     _configuration    = configuration;
     _authService      = authService;
     _qRCodeService    = qRCodeService;
     _emailSender      = emailSender;
 }
Пример #7
0
 public SysAreaService(
     IHttpRpcService _HttpRpcService,
     IQRCodeService _IQRCodeService,
     ILogService _LogService,
     IConfiguration _IConfiguration,
     ISysAreaRepository _ISysAreaRepository
     )
 {
     httpRpcService    = _HttpRpcService;
     qRCodeService     = _IQRCodeService;
     logService        = _LogService;
     configuration     = _IConfiguration;
     sysAreaRepository = _ISysAreaRepository;
     db = sysAreaRepository.GetDb();
 }
Пример #8
0
        public async Task <FileContentResult> Get([FromServices] IQRCodeService _qr, string content)
        {
            //var buffer = await _qr.GenerateQRCode(content);
            var iconPath = _hostEnvironment.ContentRootPath;//D:\\WorkSpace\\GitHub\\MyNetCore\\MyNetCore.Web

            iconPath += "\\wwwroot\\favicon.ico";
            if (System.IO.File.Exists(iconPath))
            {
                var buffer = await _qr.GenerateQRCode(content, iconPath);

                return(File(buffer, "image/jpeg"));
            }
            else
            {
                var buffer = await _qr.GenerateQRCode(content);

                return(File(buffer, "image/jpeg"));
            }
        }
Пример #9
0
 public QRCoderQRCodeServiceTest(ITestOutputHelper output) : base(output)
 {
     _service = new QRCoderQRCodeService();
 }
Пример #10
0
 public CreateCommandTest()
 {
     qrCodeService          = A.Fake <IQRCodeService>();
     commandLineApplication = A.Fake <CommandLineApplication>();
 }
Пример #11
0
 public ImageController(IQRCodeService qrCodeService)
 {
     this.QRCodeService = qrCodeService;
 }
Пример #12
0
 public CreateCommand(IQRCodeService qrCodeService)
 {
     _qrCodeService = qrCodeService;
 }
Пример #13
0
 /// <summary>
 /// 构造器
 /// </summary>
 /// <param name="qRCodeService"></param>
 public AdQRCodeController(IQRCodeService qRCodeService)
 {
     _QRCodeService = qRCodeService;
 }
Пример #14
0
 public HomeController()
 {
     this.communicator  = new Communicator();
     this.qRCodeService = ServiceLocator.GetService <IQRCodeService>();
 }
Пример #15
0
 public QrCodeController(IQRCodeService qRCodeService)
 {
     this.qRCodeService = qRCodeService;
 }
 public ZXingQRCodeServiceTest(ITestOutputHelper output) : base(output)
 {
     _service = new ZXingQRCodeService();
 }
Пример #17
0
 public ValuesController(IQRCodeService qrCode, IHostingEnvironment hostingEnvironment)
 {
     _qrCode             = qrCode;
     _hostingEnvironment = hostingEnvironment;
 }
Пример #18
0
 public RiskPointManageController(IRiskPointManageService riskmanageService, IQRCodeService qrcodeService, IMapper mapper)
 {
     _riskmanageService = riskmanageService;
     _qrcodeService     = qrcodeService;
     _mapper            = mapper;
 }
Пример #19
0
 public QRCodeController()
 {
     this.qrcodeService = ServiceLocator.GetService <IQRCodeService>();
 }
Пример #20
0
 public QRCodeGenerateController(IQRCodeService service)
 {
     _QRCodeService = service;
 }