Class JsonServiceCollectionExtensions
Extension methods for a service collection which adds JSON-serialization services.
Inheritance
System.Object
JsonServiceCollectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation
Assembly: CSF.Validation.Json.dll
Syntax
public static class JsonServiceCollectionExtensions
Methods
| Improve this Doc View SourceAddJsonValidationSerializer(IServiceCollection)
Adds registrations to the service collection so that validators may be created-from and saved-to JSON.
Declaration
public static IServiceCollection AddJsonValidationSerializer(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | A service collection |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The same service collection, so that calls may be chained |