Files
Examples/GerstITS.Examples.Api/Module.Mvc.cs
2022-12-22 15:29:53 +01:00

20 lines
512 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace GerstITS.Examples.Api;
public sealed partial class Module
{
#region Methods
private static void RegisterMvc(IServiceCollection container)
{
//container.AddTransient<IConfigureOptions<MvcOptions>, ApiMvcOptions>();
//container.AddTransient<IConfigureOptions<MvcNewtonsoftJsonOptions>, MvcJsonOptions>();
container.AddMvc()
.AddNewtonsoftJson();
}
#endregion
}