Exemplo n.º 1
0
        public void ShowAsync(int Id)
        {
            string webRootPath = Server.MapPath("~/WEBVOUCHERFOLDER");

            AsyncManager.OutstandingOperations.Increment();
            AsyncManager.Timeout = ASINCH_TIMEOUT;

            var tcpBinding      = ScanServiceClient.GetBinding();
            var endpointAddress = ScanServiceClient.GetEnpoint();

            ScanServiceClient proxy = new ScanServiceClient(tcpBinding, endpointAddress);

            proxy.ReadVoucherInfoCompleted += OnReadVoucherInfoCompleted;

            var keys = Security.CreateInstance().GenerateSecurityKeys();

            proxy.ReadVoucherInfoAsync(Id, webRootPath, keys.Item1, keys.Item2);
        }