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