update sample, bump version

This commit is contained in:
Tommy Parnell
2016-06-25 08:24:39 -04:00
parent 2bab2c3d1d
commit a2f9c5e5d5
3 changed files with 18 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ var download = require("gulp-download");
var del = require('del');
var assemblyInfo = require('gulp-dotnet-assembly-info');
var xunit = xunit = require('gulp-xunit-runner');
var version = '1.3.2';
var version = '1.4.0';
gulp.task('clean', ()=>{
return del(['src/**/obj/', 'src/**/bin/Release', 'nuget.exe', 'nupkgs'])

View File

@@ -14,7 +14,21 @@ namespace CompressR.Sample.Controllers
{
ViewBag.Title = "Home Page";
return View();
return View("index");
}
[Gzip]
public ActionResult Gzip()
{
ViewBag.Title = "Home Page";
return View("index");
}
[Deflate]
public ActionResult Deflate()
{
ViewBag.Title = "Home Page";
return View("index");
}
}
}

View File

@@ -17,6 +17,7 @@ namespace CompressR.Sample.Controllers
{
return new string[] { "value1", "value2" };
}
[Deflate]
// GET api/values/5
public string Get(int id)
@@ -24,7 +25,7 @@ namespace CompressR.Sample.Controllers
return "value";
}
[Compress]
[Gzip]
[HttpGet, Route("TestJsonSerialization")]
public async Task<IHttpActionResult> TestJsonSerialization()
{