|
2 | 2 | using Microsoft.AspNetCore.Hosting; |
3 | 3 | using Microsoft.Extensions.Configuration; |
4 | 4 | using Microsoft.Extensions.DependencyInjection; |
5 | | -using System.Linq; |
6 | 5 | using CSDiscordService.Eval; |
7 | 6 | using System; |
8 | 7 | using System.Threading.Tasks; |
@@ -42,7 +41,7 @@ public void ConfigureServices(IServiceCollection services) |
42 | 41 | new RuntimeTypeHandleJsonConverter(), new TypeJsonConverterFactory(), new AssemblyJsonConverter(), |
43 | 42 | new ModuleJsonConverter(), new AssemblyJsonConverterFactory(), |
44 | 43 | new DirectoryInfoJsonConverter(), |
45 | | - new AngouriMathEntityConverter(), new AngouriMathEntityVarsConverter(), |
| 44 | + new AngouriMathEntityConverter(), new AngouriMathEntityVarsConverter(), |
46 | 45 | new IntPtrJsonConverter() |
47 | 46 | } |
48 | 47 | }; |
@@ -76,11 +75,9 @@ public void ConfigureServices(IServiceCollection services) |
76 | 75 | services.AddTransient<IDirectiveProcessor, NugetDirectiveProcessor>(); |
77 | 76 | } |
78 | 77 |
|
79 | | - public void Configure(IApplicationBuilder app, IWebHostEnvironment env, CSharpEval evalService, IHostApplicationLifetime appLifetime) |
| 78 | + public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime appLifetime) |
80 | 79 | { |
81 | 80 | _appLifetime = appLifetime; |
82 | | - // run eval once on startup so the first time its hit isn't cripplingly slow. |
83 | | - evalService.RunEvalAsync("1+1").ConfigureAwait(false).GetAwaiter().GetResult(); |
84 | 81 | app.UseRouting(); |
85 | 82 | app.Use(async (context, next) => |
86 | 83 | { |
|
0 commit comments