Show / Hide Table of Contents

Class DefaultJsonSerializerConfigurator

A default JSON serializer configurator.

Inheritance
System.Object
Loggable
DefaultJsonSerializerConfigurator
Implements
ILoggable
IJsonSerializerConfigurator
Inherited Members
Loggable.Logger
Loggable.GetLogger()
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: Kephas.Serialization.ServiceStack.Text
Assembly: Kephas.Serialization.ServiceStack.Text.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultJsonSerializerConfigurator : Loggable, ILoggable, IJsonSerializerConfigurator

Constructors

| Improve this Doc View Source

DefaultJsonSerializerConfigurator(ITypeResolver, ICollection<IExportFactory<ITypeJsonSerializer, TypeJsonSerializerMetadata>>)

Initializes a new instance of the DefaultJsonSerializerConfigurator class.

Declaration
public DefaultJsonSerializerConfigurator(ITypeResolver typeResolver, ICollection<IExportFactory<ITypeJsonSerializer, TypeJsonSerializerMetadata>> typeSerializerFactories = null)
Parameters
Type Name Description
ITypeResolver typeResolver

The type resolver.

System.Collections.Generic.ICollection<IExportFactory<ITypeJsonSerializer, TypeJsonSerializerMetadata>> typeSerializerFactories

Optional. The type serializer factories.

Properties

| Improve this Doc View Source

TypeAttr

Gets or sets the type attribute.

Declaration
public string TypeAttr { get; protected set; }
Property Value
Type Description
System.String

The type attribute.

| Improve this Doc View Source

TypeResolver

Gets the type resolver.

Declaration
public ITypeResolver TypeResolver { get; }
Property Value
Type Description
ITypeResolver

The type resolver.

Methods

| Improve this Doc View Source

ConfigureJsonSerialization(Boolean)

Configures the JSON serialization.

Declaration
public virtual bool ConfigureJsonSerialization(bool overwrite = false)
Parameters
Type Name Description
System.Boolean overwrite

True to overwrite the configuration, false to preserve it (optional).

Returns
Type Description
System.Boolean

True if the configuration was changed, false otherwise.

Implements

ILoggable
IJsonSerializerConfigurator

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX