Ejemplo n.º 1
0
        #pragma warning disable 1998
        public override async Task ExecuteAsync()
        {
            PageExecutionContext.BeginContext(0, 4, true);
            WriteLiteral("<div");
            PageExecutionContext.EndContext();
            WriteAttribute("class", Tuple.Create(" class=\"", 4), Tuple.Create("\"", 17),
                           Tuple.Create(Tuple.Create("", 12), Tuple.Create <System.Object, System.Int32>(
#line 1 "TestFiles/Input/Basic.cshtml"
                                            logo

#line default
#line hidden
                                            , 12), false));
            PageExecutionContext.BeginContext(18, 24, true);
            WriteLiteral(">\r\n    Hello world\r\n    ");
            PageExecutionContext.EndContext();
            PageExecutionContext.BeginContext(43, 21, false);
            Write(
#line 3 "TestFiles/Input/Basic.cshtml"
                Html.Input("SomeKey")

#line default
#line hidden
                );

            PageExecutionContext.EndContext();
            PageExecutionContext.BeginContext(64, 8, true);
            WriteLiteral("\r\n</div>");
            PageExecutionContext.EndContext();
        }
Ejemplo n.º 2
0
 public void EndContext()
 {
     PageExecutionContext?.EndContext();
 }
Ejemplo n.º 3
0
 public void BeginContext(int position, int length, bool isLiteral)
 {
     PageExecutionContext?.BeginContext(position, length, isLiteral);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Called by a view engine BEFORE it renders the output for the specified context.
 /// </summary>
 public abstract void BeginContext(PageExecutionContext context);
Ejemplo n.º 5
0
 /// <summary>
 /// Called by a view engine AFTER it renders the output for the specified context.
 /// </summary>
 public abstract void EndContext(PageExecutionContext context);