diff --git a/test/Microsoft.AspNet.Razor.Test/Generator/CSharpRazorCodeGeneratorTest.cs b/test/Microsoft.AspNet.Razor.Test/Generator/CSharpRazorCodeGeneratorTest.cs index 477cb85d21..ca6bcc9bbc 100644 --- a/test/Microsoft.AspNet.Razor.Test/Generator/CSharpRazorCodeGeneratorTest.cs +++ b/test/Microsoft.AspNet.Razor.Test/Generator/CSharpRazorCodeGeneratorTest.cs @@ -98,8 +98,8 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.Tabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(1, 0, 1, 448, 20, 0, 15), - BuildLineMapping(27, 2, 12, 539, 28, 6, 3) + BuildLineMapping(1, 0, 1, 494, 21, 0, 15), + BuildLineMapping(27, 2, 12, 585, 29, 6, 3) }); } @@ -109,13 +109,13 @@ namespace Microsoft.AspNet.Razor.Test.Generator RunTest("RazorComments", "RazorComments.DesignTime", designTimeMode: true, tabTest: TabTest.NoTabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(81, 3, 441, 20, 2, 6), - BuildLineMapping(122, 4, 39, 552, 27, 38, 22), - BuildLineMapping(173, 5, 49, 689, 34, 48, 58), - BuildLineMapping(238, 11, 815, 43, 2, 24), - BuildLineMapping(310, 12, 973, 49, 45, 3), - BuildLineMapping(323, 14, 2, 1070, 54, 6, 1), - BuildLineMapping(328, 14, 1113, 56, 7, 1), + BuildLineMapping(81, 3, 487, 21, 2, 6), + BuildLineMapping(122, 4, 39, 598, 28, 38, 22), + BuildLineMapping(173, 5, 49, 735, 35, 48, 58), + BuildLineMapping(238, 11, 861, 44, 2, 24), + BuildLineMapping(310, 12, 1019, 50, 45, 3), + BuildLineMapping(323, 14, 2, 1116, 55, 6, 1), + BuildLineMapping(328, 14, 1159, 57, 7, 1), }); } @@ -140,8 +140,8 @@ namespace Microsoft.AspNet.Razor.Test.Generator BuildLineMapping(1, 0, 1, 51, 3, 0, 15), BuildLineMapping(19, 1, 1, 132, 9, 0, 32), BuildLineMapping(54, 2, 1, 230, 15, 0, 12), - BuildLineMapping(99, 4, 716, 37, 29, 21), - BuildLineMapping(161, 5, 860, 42, 35, 20), + BuildLineMapping(99, 4, 762, 38, 29, 21), + BuildLineMapping(161, 5, 906, 43, 35, 20), }); } @@ -154,9 +154,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.NoTabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(12, 0, 12, 156, 8, 0, 4), - BuildLineMapping(33, 4, 12, 224, 14, 0, 104), - BuildLineMapping(167, 11, 724, 35, 25, 11) + BuildLineMapping(12, 0, 12, 191, 9, 0, 4), + BuildLineMapping(33, 4, 12, 259, 15, 0, 104), + BuildLineMapping(167, 11, 770, 36, 25, 11) }); } @@ -169,9 +169,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.Tabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(12, 0, 12, 156, 8, 0, 4), - BuildLineMapping(33, 4, 12, 224, 14, 0, 104), - BuildLineMapping(167, 11, 25, 712, 35, 13, 11) + BuildLineMapping(12, 0, 12, 191, 9, 0, 4), + BuildLineMapping(33, 4, 12, 259, 15, 0, 104), + BuildLineMapping(167, 11, 25, 758, 36, 13, 11) }); } @@ -184,7 +184,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.Tabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(16, 2, 12, 170, 8, 0, 55) + BuildLineMapping(16, 2, 12, 205, 9, 0, 55) }); } @@ -193,8 +193,8 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("HiddenSpansInCode", designTimeMode: true, tabTest: TabTest.NoTabs, expectedDesignTimePragmas: new List { - BuildLineMapping(2, 0, 453, 20, 2, 6), - BuildLineMapping(9, 1, 535, 27, 5, 5) + BuildLineMapping(2, 0, 499, 21, 2, 6), + BuildLineMapping(9, 1, 581, 28, 5, 5) }); } @@ -203,7 +203,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("ParserError", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 435, 20, 2, 31) + BuildLineMapping(2, 0, 481, 21, 2, 31) }); } @@ -218,8 +218,8 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("Inherits", baselineName: "Inherits.Designtime", designTimeMode: true, tabTest: TabTest.NoTabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(20, 2, 286, 11, 10, 25), - BuildLineMapping(1, 0, 1, 605, 25, 6, 5) + BuildLineMapping(20, 2, 321, 12, 10, 25), + BuildLineMapping(1, 0, 1, 651, 26, 6, 5) }); } @@ -228,9 +228,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("UnfinishedExpressionInCode", tabTest: TabTest.NoTabs, designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 480, 20, 2, 2), - BuildLineMapping(5, 1, 1, 575, 26, 6, 9), - BuildLineMapping(14, 1, 673, 31, 10, 2) + BuildLineMapping(2, 0, 526, 21, 2, 2), + BuildLineMapping(5, 1, 1, 621, 27, 6, 9), + BuildLineMapping(14, 1, 719, 32, 10, 2) }); } @@ -242,9 +242,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.Tabs, designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 480, 20, 2, 2), - BuildLineMapping(5, 1, 1, 575, 26, 6, 9), - BuildLineMapping(14, 1, 10, 667, 31, 4, 2) + BuildLineMapping(2, 0, 526, 21, 2, 2), + BuildLineMapping(5, 1, 1, 621, 27, 6, 9), + BuildLineMapping(14, 1, 10, 713, 32, 4, 2) }); } @@ -256,18 +256,18 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.NoTabs, expectedDesignTimePragmas: new List() { - BuildLineMapping(222, 16, 8, 174, 9, 0, 7), - BuildLineMapping(229, 16, 317, 15, 15, 26), - BuildLineMapping(265, 18, 426, 23, 18, 9), - BuildLineMapping(274, 20, 521, 32, 0, 1), - BuildLineMapping(20, 1, 13, 880, 50, 12, 36), - BuildLineMapping(74, 2, 1027, 57, 22, 1), - BuildLineMapping(79, 2, 1118, 62, 27, 15), - BuildLineMapping(113, 7, 2, 1228, 69, 6, 12), - BuildLineMapping(129, 8, 1, 1334, 74, 6, 4), - BuildLineMapping(142, 8, 1459, 76, 14, 3), - BuildLineMapping(153, 8, 1556, 83, 25, 1), - BuildLineMapping(204, 13, 5, 1729, 93, 6, 3) + BuildLineMapping(222, 16, 8, 209, 10, 0, 7), + BuildLineMapping(229, 16, 352, 16, 15, 26), + BuildLineMapping(265, 18, 461, 24, 18, 9), + BuildLineMapping(274, 20, 556, 33, 0, 1), + BuildLineMapping(20, 1, 13, 926, 51, 12, 36), + BuildLineMapping(74, 2, 1073, 58, 22, 1), + BuildLineMapping(79, 2, 1164, 63, 27, 15), + BuildLineMapping(113, 7, 2, 1274, 70, 6, 12), + BuildLineMapping(129, 8, 1, 1380, 75, 6, 4), + BuildLineMapping(142, 8, 1505, 77, 14, 3), + BuildLineMapping(153, 8, 1602, 84, 25, 1), + BuildLineMapping(204, 13, 5, 1775, 94, 6, 3) }); } @@ -277,7 +277,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("ImplicitExpressionAtEOF", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(19, 2, 1, 487, 20, 6, 0) + BuildLineMapping(19, 2, 1, 533, 21, 6, 0) }); } @@ -286,7 +286,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("ExplicitExpressionAtEOF", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(20, 2, 2, 487, 20, 6, 0) + BuildLineMapping(20, 2, 2, 533, 21, 6, 0) }); } @@ -295,7 +295,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("CodeBlockAtEOF", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 444, 20, 2, 0) + BuildLineMapping(2, 0, 490, 21, 2, 0) }); } @@ -304,7 +304,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("EmptyImplicitExpression", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(19, 2, 1, 487, 20, 6, 0) + BuildLineMapping(19, 2, 1, 533, 21, 6, 0) }); } @@ -313,9 +313,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("EmptyImplicitExpressionInCode", tabTest: TabTest.NoTabs, designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 489, 20, 2, 6), - BuildLineMapping(9, 1, 5, 590, 27, 6, 0), - BuildLineMapping(9, 1, 677, 32, 5, 2) + BuildLineMapping(2, 0, 535, 21, 2, 6), + BuildLineMapping(9, 1, 5, 636, 28, 6, 0), + BuildLineMapping(9, 1, 723, 33, 5, 2) }); } @@ -327,9 +327,9 @@ namespace Microsoft.AspNet.Razor.Test.Generator tabTest: TabTest.Tabs, designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(2, 0, 489, 20, 2, 6), - BuildLineMapping(9, 1, 5, 590, 27, 6, 0), - BuildLineMapping(9, 1, 5, 674, 32, 2, 2) + BuildLineMapping(2, 0, 535, 21, 2, 6), + BuildLineMapping(9, 1, 5, 636, 28, 6, 0), + BuildLineMapping(9, 1, 5, 720, 33, 2, 2) }); } @@ -338,7 +338,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("EmptyExplicitExpression", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(20, 2, 2, 487, 20, 6, 0) + BuildLineMapping(20, 2, 2, 533, 21, 6, 0) }); } @@ -347,7 +347,7 @@ namespace Microsoft.AspNet.Razor.Test.Generator { RunTest("EmptyCodeBlock", designTimeMode: true, expectedDesignTimePragmas: new List() { - BuildLineMapping(20, 2, 444, 20, 2, 0) + BuildLineMapping(20, 2, 490, 21, 2, 0) }); } @@ -412,10 +412,10 @@ namespace Microsoft.AspNet.Razor.Test.Generator }, expectedDesignTimePragmas: new List() { - BuildLineMapping(17, 2, 1, 424, 20, 0, 14), - BuildLineMapping(38, 3, 7, 498 + tabOffsetForMapping, 26, tabOffsetForMapping, 2), + BuildLineMapping(17, 2, 1, 470, 21, 0, 14), + BuildLineMapping(38, 3, 7, 544 + tabOffsetForMapping, 27, tabOffsetForMapping, 2), // Multiply the tab offset absolute index by 2 to account for the first mapping - BuildLineMapping(47, 4, 7, 560 + tabOffsetForMapping * 2, 32, tabOffsetForMapping, 0) + BuildLineMapping(47, 4, 7, 606 + tabOffsetForMapping * 2, 33, tabOffsetForMapping, 0) }); } diff --git a/test/Microsoft.AspNet.Razor.Test/Generator/CodeTree/CSharpCodeBuilderTests.cs b/test/Microsoft.AspNet.Razor.Test/Generator/CodeTree/CSharpCodeBuilderTests.cs index f7f3902ca3..63deedf115 100644 --- a/test/Microsoft.AspNet.Razor.Test/Generator/CodeTree/CSharpCodeBuilderTests.cs +++ b/test/Microsoft.AspNet.Razor.Test/Generator/CodeTree/CSharpCodeBuilderTests.cs @@ -14,14 +14,14 @@ namespace Microsoft.AspNet.Razor.Test.Generator.CodeTree { var syntaxTreeNode = new Mock(new SpanBuilder()); var language = new CSharpRazorCodeLanguage(); - RazorEngineHost host = new RazorEngineHost(language); + var host = new RazorEngineHost(language); var context = CodeGeneratorContext.Create(host, "TestClass", "TestNamespace", "Foo.cs", shouldGenerateLinePragmas: false); context.CodeTreeBuilder.AddUsingChunk("FakeNamespace1", syntaxTreeNode.Object); context.CodeTreeBuilder.AddUsingChunk("FakeNamespace2.SubNamespace", syntaxTreeNode.Object); - CodeBuilder codeBuilder = language.CreateCodeBuilder(context); + var codeBuilder = language.CreateCodeBuilder(context); // Act - CodeBuilderResult result = codeBuilder.Build(); + var result = codeBuilder.Build(); // Assert Assert.Equal(@"namespace TestNamespace { @@ -37,6 +37,7 @@ using FakeNamespace2.SubNamespace #line default #line hidden ; + using System.Threading.Tasks; public class TestClass { @@ -45,7 +46,7 @@ using FakeNamespace2.SubNamespace { } - public override void Execute() + public override async Task ExecuteAsync() { } } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Blocks.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Blocks.cs index 6632de57a7..cf3bbb562f 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Blocks.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Blocks.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Blocks { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "Blocks.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlock.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlock.cs index a5935f3479..25eac402da 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlock.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlock.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class CodeBlock { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "CodeBlock.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlockAtEOF.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlockAtEOF.cs index a0f8eb9f51..8cbe26828d 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlockAtEOF.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeBlockAtEOF.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class CodeBlockAtEOF { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "CodeBlockAtEOF.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeTree.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeTree.cs index 6cdad2c74f..6aac8e07b2 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeTree.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/CodeTree.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class CodeTree { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { } } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ConditionalAttributes.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ConditionalAttributes.cs index 2bfb4cc745..1afebc8dcc 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ConditionalAttributes.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ConditionalAttributes.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ConditionalAttributes { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "ConditionalAttributes.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/DesignTime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/DesignTime.cs index 2510fdf6e3..1ecf5ac918 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/DesignTime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/DesignTime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class DesignTime { @@ -45,7 +46,7 @@ Foo() { { } - public override void Execute() + public override async Task ExecuteAsync() { #line 2 "DesignTime.cshtml" for(int i = 1; i <= 10; i++) { diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyCodeBlock.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyCodeBlock.cs index 3928537e49..6f15e3ba6d 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyCodeBlock.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyCodeBlock.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class EmptyCodeBlock { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 3 "EmptyCodeBlock.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyExplicitExpression.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyExplicitExpression.cs index ac92c7e9dc..58aadad9f7 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyExplicitExpression.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyExplicitExpression.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class EmptyExplicitExpression { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = ; diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpression.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpression.cs index c86605fdd7..32809dfb5b 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpression.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpression.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class EmptyImplicitExpression { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = ; diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.Tabs.cs index a3804d066b..e90bc34c8e 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class EmptyImplicitExpressionInCode { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "EmptyImplicitExpressionInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.cs index fb47cc9f69..5be57e03c3 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyImplicitExpressionInCode.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class EmptyImplicitExpressionInCode { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "EmptyImplicitExpressionInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpression.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpression.cs index 8cb3f2fbb4..c75e713e68 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpression.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpression.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ExplicitExpression { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("1 + 1 = "); Write( diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpressionAtEOF.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpressionAtEOF.cs index 62e76ef3aa..7fa18a1570 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpressionAtEOF.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExplicitExpressionAtEOF.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ExplicitExpressionAtEOF { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = ; diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExpressionsInCode.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExpressionsInCode.cs index bd5164f592..9af1271183 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExpressionsInCode.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ExpressionsInCode.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ExpressionsInCode { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "ExpressionsInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.Tabs.cs index 636c86c8e9..ec33b4142e 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class FunctionsBlock { @@ -30,7 +31,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = RandomInt(); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.cs index 889840fc0b..79bf2ebc2e 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.DesignTime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class FunctionsBlock { @@ -30,7 +31,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = RandomInt(); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.cs index 679525dd53..857998399e 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class FunctionsBlock { @@ -24,7 +25,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); WriteLiteral("\r\nHere\'s a random number: "); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlockMinimal.DesignTime.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlockMinimal.DesignTime.Tabs.cs index d236672670..8b0a68fc9f 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlockMinimal.DesignTime.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlockMinimal.DesignTime.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class FunctionsBlockMinimal { @@ -23,7 +24,7 @@ string foo(string input) { { } - public override void Execute() + public override async Task ExecuteAsync() { } } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock_Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock_Tabs.cs index 6c4a3ed63b..556351b4ef 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock_Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/FunctionsBlock_Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class FunctionsBlock_Tabs { @@ -24,7 +25,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); WriteLiteral("\r\nHere\'s a random number: "); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.Instance.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.Instance.cs index 74812fcab6..db7ce3aef6 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.Instance.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.Instance.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Helpers { @@ -83,7 +84,7 @@ Italic(string s) { { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); WriteLiteral("\r\n"); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.cs index 5e01b915eb..d7635424c6 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Helpers.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Helpers { @@ -83,7 +84,7 @@ Italic(string s) { { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); WriteLiteral("\r\n"); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingCloseParen.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingCloseParen.cs index 65fce2d4e4..a7a8bcd7fd 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingCloseParen.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingCloseParen.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HelpersMissingCloseParen { @@ -54,7 +55,7 @@ Italic(string s { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenBrace.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenBrace.cs index ce9845da9f..965e5eadac 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenBrace.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenBrace.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HelpersMissingOpenBrace { @@ -53,7 +54,7 @@ Italic(string s) { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); Write( diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenParen.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenParen.cs index 58fa653e95..faadb539e4 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenParen.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HelpersMissingOpenParen.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HelpersMissingOpenParen { @@ -53,7 +54,7 @@ Italic { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); Write( diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HiddenSpansInCode.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HiddenSpansInCode.cs index 2e00f4dc08..5cf6b4210a 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HiddenSpansInCode.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HiddenSpansInCode.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HiddenSpansInCode { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "HiddenSpansInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Double.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Double.cs index d6e33b3324..a25f8f19e7 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Double.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Double.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HtmlCommentWithQuote_Double { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n(Href("~/images/submit.png"), 22), false)); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Single.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Single.cs index 30e6d8564b..a85408c760 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Single.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/HtmlCommentWithQuote_Single.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class HtmlCommentWithQuote_Single { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n(Href("~/images/submit.png"), 22), false)); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpression.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpression.cs index e93721ee8c..9348080e31 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpression.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpression.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ImplicitExpression { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "ImplicitExpression.cshtml" for(int i = 1; i <= 10; i++) { diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpressionAtEOF.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpressionAtEOF.cs index c9fa1434b3..c566ee2e90 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpressionAtEOF.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ImplicitExpressionAtEOF.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ImplicitExpressionAtEOF { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = ; diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.DesignTime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.DesignTime.cs index 8707ff9009..de2f9bc180 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.DesignTime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.DesignTime.cs @@ -18,6 +18,7 @@ using System #line default #line hidden ; + using System.Threading.Tasks; public class Imports { @@ -32,7 +33,7 @@ using System { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = typeof(Path).FullName; diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.cs index 1adbaa309d..3a2fbcca77 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Imports.cs @@ -18,6 +18,7 @@ using System #line default #line hidden ; + using System.Threading.Tasks; public class Imports { @@ -26,7 +27,7 @@ using System { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n

Path\'s full type name is "); Write( diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Designtime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Designtime.cs index 2ccdbaf6fa..9e5cdb3270 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Designtime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Designtime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Inherits : foo.bar>.boz bar { @@ -20,7 +21,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "------------------------------------------" __o = foo(); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Runtime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Runtime.cs index 0b4ea4fb72..aba6f17210 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Runtime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Inherits.Runtime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Inherits : foo.bar>.boz bar { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { Write( #line 1 "Inherits.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/InlineBlocks.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/InlineBlocks.cs index f97c774c91..3ec093fa5c 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/InlineBlocks.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/InlineBlocks.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class InlineBlocks { @@ -68,7 +69,7 @@ Link(string link) { { } - public override void Execute() + public override async Task ExecuteAsync() { } } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/LayoutDirective.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/LayoutDirective.cs index f8f62c01d4..935e4d8bad 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/LayoutDirective.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/LayoutDirective.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class LayoutDirective { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { Layout = "~/Foo/Bar/Baz"; } diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/MarkupInCodeBlock.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/MarkupInCodeBlock.cs index 5737eec819..28ffb62b01 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/MarkupInCodeBlock.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/MarkupInCodeBlock.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class MarkupInCodeBlock { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "MarkupInCodeBlock.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedCodeBlocks.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedCodeBlocks.cs index 7b4da46150..d80a7363f3 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedCodeBlocks.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedCodeBlocks.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class NestedCodeBlocks { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "NestedCodeBlocks.cshtml" if(foo) { diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedHelpers.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedHelpers.cs index 93958b3564..70df4fe296 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedHelpers.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NestedHelpers.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class NestedHelpers { @@ -91,7 +92,7 @@ Bold(string s) { { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); Write( diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NoLinePragmas.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NoLinePragmas.cs index 95a9512d39..236c71d30a 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NoLinePragmas.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/NoLinePragmas.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class NoLinePragmas { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.Tabs.cs index 4f8439a6f1..7c67490c3e 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class OpenedIf { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 3 "OpenedIf.cshtml" if (true) { diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.cs index 4bd989e916..2fb8a18926 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/OpenedIf.DesignTime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class OpenedIf { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 3 "OpenedIf.cshtml" if (true) { diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ParserError.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ParserError.cs index 75bd58771b..a4cf7e5d4f 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ParserError.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ParserError.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ParserError { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "ParserError.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.DesignTime.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.DesignTime.cs index 910c73260e..9c350c2488 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.DesignTime.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.DesignTime.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class RazorComments { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 4 "RazorComments.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.cs index 1944eecf3a..ba28856507 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/RazorComments.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class RazorComments { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n

This should be shown

\r\n\r\n"); #line 4 "RazorComments.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ResolveUrl.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ResolveUrl.cs index b79094c09b..9fd1870745 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ResolveUrl.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/ResolveUrl.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class ResolveUrl { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("(Href("~/Foo"), 9), false)); diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Sections.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Sections.cs index 7bd2254dc6..7ef2d0e5d1 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Sections.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Sections.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Sections { @@ -9,7 +10,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "Sections.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/SimpleUnspacedIf.DesignTime.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/SimpleUnspacedIf.DesignTime.Tabs.cs index f6ef9ea6d5..4ae3cee927 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/SimpleUnspacedIf.DesignTime.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/SimpleUnspacedIf.DesignTime.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class SimpleUnspacedIf { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "SimpleUnspacedIf.cshtml" if (true) diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Templates.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Templates.cs index 38f80e912c..cea0b69ec8 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Templates.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/Templates.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class Templates { @@ -21,7 +22,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { WriteLiteral("\r\n"); #line 11 "Templates.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.Tabs.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.Tabs.cs index 6b1f3e0ca6..45218b29b8 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.Tabs.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.Tabs.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class UnfinishedExpressionInCode { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "UnfinishedExpressionInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.cs b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.cs index ada83a30be..654d74b2f1 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.cs +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/UnfinishedExpressionInCode.cs @@ -1,6 +1,7 @@ namespace TestOutput { using System; + using System.Threading.Tasks; public class UnfinishedExpressionInCode { @@ -15,7 +16,7 @@ namespace TestOutput { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "UnfinishedExpressionInCode.cshtml" diff --git a/test/Microsoft.AspNet.Razor.Test/TestFiles/DesignTime/Simple.txt b/test/Microsoft.AspNet.Razor.Test/TestFiles/DesignTime/Simple.txt index 66e682213f..f166519f2f 100644 --- a/test/Microsoft.AspNet.Razor.Test/TestFiles/DesignTime/Simple.txt +++ b/test/Microsoft.AspNet.Razor.Test/TestFiles/DesignTime/Simple.txt @@ -1,5 +1,6 @@ namespace Razor { + using System.Threading.Tasks; public class __CompiledTemplate { @@ -14,7 +15,7 @@ { } - public override void Execute() + public override async Task ExecuteAsync() { #line 1 "C:\This\Path\Is\Just\For\Line\Pragmas.cshtml"