Пример #1
0
        public override void ExecuteResult(ControllerContext context)
        {
            var res = context.HttpContext.Response;

            res.Clear();

            res.Cache.SetCacheability(HttpCacheability.NoCache);
            res.ContentType = ContentType;

            if (SourceStream != null)
            {
                SourceStream.WriteTo(res.OutputStream);
            }
        }