File tree Expand file tree Collapse file tree
src/Microsoft.VisualStudio.Web.BrowserLink Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66using System . Text ;
77using System . Threading ;
88using System . Threading . Tasks ;
9+ using Microsoft . Extensions . Internal ;
910
1011namespace Microsoft . VisualStudio . Web . BrowserLink
1112{
@@ -388,14 +389,14 @@ private Task ReadContent()
388389
389390 if ( String . IsNullOrEmpty ( contentLengthString ) )
390391 {
391- return StaticTaskResult . Zero ;
392+ return TaskCache . CompletedTask ;
392393 }
393394
394395 long contentLength ;
395396
396397 if ( ! Int64 . TryParse ( contentLengthString , out contentLength ) )
397398 {
398- return StaticTaskResult . Zero ;
399+ return TaskCache . CompletedTask ;
399400 }
400401
401402 return ReadBytesIntoResponse ( contentLength ) ;
Original file line number Diff line number Diff line change 1414 "dependencies" : {
1515 "Microsoft.AspNetCore.Hosting.Abstractions" : " 1.0.0" ,
1616 "Microsoft.AspNetCore.Http.Abstractions" : " 1.0.0" ,
17- "Microsoft.Extensions.FileProviders.Physical" : " 1.0.0"
17+ "Microsoft.Extensions.FileProviders.Physical" : " 1.0.0" ,
18+ "Microsoft.Extensions.TaskCache.Sources" : {
19+ "version" : " 1.1.0-*" ,
20+ "type" : " build"
21+ }
1822 },
1923 "frameworks" : {
2024 "net451" : {},
Original file line number Diff line number Diff line change @@ -13,7 +13,5 @@ internal static class StaticTaskResult
1313 public static readonly Task Complete = True ;
1414
1515 public static readonly Task < int > HttpInternalServerError = Task . FromResult ( 500 ) ;
16-
17- public static readonly Task < int > Zero = Task . FromResult ( 0 ) ;
1816 }
1917}
You can’t perform that action at this time.
0 commit comments