/// <inheritdoc /> public override void ConfigurePlatformJsonContracts(IMicroContractResolverBuilder builder) => builder .AddCreator <ProblemDetails, ProblemDetailsJsonContractCreator>() .AddCreator <ValidationProblemDetails, ValidationProblemDetailsJsonContractCreator>();
public static IMicroContractResolverBuilder AddCreator <TData, T> (this IMicroContractResolverBuilder builder) where T : class, IJsonContractCreator, new() => builder.AddCreator(typeof(TData), Singleton <T> .instance);