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