Skip to content

Commit 571eb3e

Browse files
Update how_to_use_code_behind.md
1 parent 66dc4c9 commit 571eb3e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

doc/how_to_use_code_behind.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ var builder = WebApplication.CreateBuilder(args);
3636

3737
var app = builder.Build();
3838

39-
+ SetCodeBehind.CodeBehindCompiler.Initialization();
39+
+SetCodeBehind.CodeBehindCompiler.Initialization();
4040

41-
app.Run(async context =>
42-
{
43-
+ CodeBehind.CodeBehindExecute execute = new CodeBehind.CodeBehindExecute();
44-
+ await context.Response.WriteAsync(execute.Run(context));
45-
});
41+
+app.UseCodeBehind();
4642

4743
app.Run();
4844
```

0 commit comments

Comments
 (0)