Method AddJsonSerialization
- Namespace
- NATS.Extensions.Microsoft.DependencyInjection
- Assembly
- NATS.Extensions.Microsoft.DependencyInjection.dll
AddJsonSerialization(JsonSerializerContext)
public NatsBuilder AddJsonSerialization(JsonSerializerContext context)
Parameters
context
JsonSerializerContext
Returns
AddJsonSerialization(Func<IServiceProvider, JsonSerializerContext>)
public NatsBuilder AddJsonSerialization(Func<IServiceProvider, JsonSerializerContext> contextFactory)
Parameters
contextFactory
Func<IServiceProvider, JsonSerializerContext>