Exemple #1
0
        public async Task ExecuteResultAsync(ActionContext context)
        {
            //Debug.WriteLine("开始执行");
            using (var img = CreateValidateGraphic(_width, _height, 20))
            {
                _imageResult = new ImageResult(img);

                await _imageResult.ExecuteResultAsync(context);
            }
        }
Exemple #2
0
        public override void ExecuteResult(ActionContext context)
        {
            //Debug.WriteLine("开始执行2");
            using (var img = CreateValidateGraphic(_width, _height, 20))
            {
                _imageResult = new ImageResult(img);

                _imageResult.ExecuteResultAsync(context).Wait();
            }
        }