Skip to content

Commit

Permalink
disable auto initializing collections
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 23, 2024
1 parent fa2a754 commit bdb0a0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AiServer/Configure.AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ public void Configure(IWebHostBuilder builder) => builder
maxFileBytes: 10 * 1024 * 1024,
resolvePath:ctx => "secure".CombineWith((ctx.Request.GetApiKey() as ApiKeysFeature.ApiKey)?.Id ?? 0, ctx.FileName))
));

services.ConfigurePlugin<NativeTypesFeature>(feature =>
{
feature.MetadataTypesConfig.InitializeCollections = false;
});

});

Expand Down

0 comments on commit bdb0a0a

Please sign in to comment.