Example #1
0
        public ActionResult GetQrDownload()
        {
            using (QREncoder encoder = new QREncoder())
            {
                Uri blob = new BlobConnector().GetScannerSAS();

                return(encoder.GetQRImage(new PayloadGenerator.Url(blob.ToString()), Color.White));
            }
        }
Example #2
0
        public ActionResult GetQrDownload(string gameName)
        {
            using (QREncoder encoder = new QREncoder())
            {
                Uri blob = new BlobConnector().GetGameSAS(gameName);

                return(encoder.GetQRImage(new PayloadGenerator.Url(blob.ToString())));
            }
        }
Example #3
0
        public ActionResult GetQrCode()
        {
            if (!(Session[Statics.Visitorkey] is QRModel qrInfo))
            {
                return(null);
            }

            using (QREncoder encoder = new QREncoder())
            {
                return(encoder.GetQRImage(Convert.ToBase64String(Serializer.ToByteArray(qrInfo.ToArray())), Color.LightGray));
            }
        }