public OrganisationService(IOrganisationRepository organisationRepository, IOrganisationCounterRepository organisationCounterRepository, IEmailService emailService, IQRCodeService qrCodeService) { _organisationRepository = organisationRepository; _organisationCounterRepository = organisationCounterRepository; _emailService = emailService; _qrCodeService = qrCodeService; }
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; }
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); }
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; }
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; }
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(); }
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")); } }
public QRCoderQRCodeServiceTest(ITestOutputHelper output) : base(output) { _service = new QRCoderQRCodeService(); }
public CreateCommandTest() { qrCodeService = A.Fake <IQRCodeService>(); commandLineApplication = A.Fake <CommandLineApplication>(); }
public ImageController(IQRCodeService qrCodeService) { this.QRCodeService = qrCodeService; }
public CreateCommand(IQRCodeService qrCodeService) { _qrCodeService = qrCodeService; }
/// <summary> /// 构造器 /// </summary> /// <param name="qRCodeService"></param> public AdQRCodeController(IQRCodeService qRCodeService) { _QRCodeService = qRCodeService; }
public HomeController() { this.communicator = new Communicator(); this.qRCodeService = ServiceLocator.GetService <IQRCodeService>(); }
public QrCodeController(IQRCodeService qRCodeService) { this.qRCodeService = qRCodeService; }
public ZXingQRCodeServiceTest(ITestOutputHelper output) : base(output) { _service = new ZXingQRCodeService(); }
public ValuesController(IQRCodeService qrCode, IHostingEnvironment hostingEnvironment) { _qrCode = qrCode; _hostingEnvironment = hostingEnvironment; }
public RiskPointManageController(IRiskPointManageService riskmanageService, IQRCodeService qrcodeService, IMapper mapper) { _riskmanageService = riskmanageService; _qrcodeService = qrcodeService; _mapper = mapper; }
public QRCodeController() { this.qrcodeService = ServiceLocator.GetService <IQRCodeService>(); }
public QRCodeGenerateController(IQRCodeService service) { _QRCodeService = service; }