Show / Hide Table of Contents

Class SerializationContext

A serialization context.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
Context
SerializationContext
Implements
ISerializationContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable
Inherited Members
Context.AmbientServices
Context.CompositionContext
Context.Identity
Context.Logger
Context.Dispose()
Context.ValidateIdentity(IIdentity, IIdentity)
Context.SetCompositionContext(ICompositionContext)
Context.SetAmbientServices(IAmbientServices)
Context.Dispose(Boolean)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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
Assembly: Kephas.Core.dll
Syntax
public class SerializationContext : Context, ISerializationContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable

Constructors

| Improve this Doc View Source

SerializationContext(ICompositionContext, ISerializationService, Type)

Initializes a new instance of the SerializationContext class.

Declaration
public SerializationContext(ICompositionContext compositionContext, ISerializationService serializationService, Type mediaType = null)
Parameters
Type Name Description
ICompositionContext compositionContext

Context for the composition.

ISerializationService serializationService

The serialization service.

System.Type mediaType

Optional. The media type (type implementing IMediaType).

Properties

| Improve this Doc View Source

Indent

Gets or sets a value indicating whether the serialized output should be indented.

Declaration
public bool Indent { get; set; }
Property Value
Type Description
System.Boolean

True if the output should be indented, false if not.

| Improve this Doc View Source

MediaType

Gets or sets the media type.

Declaration
public Type MediaType { get; set; }
Property Value
Type Description
System.Type

The media type.

| Improve this Doc View Source

RootObjectFactory

Gets or sets the root object factory.

Declaration
public Func<object> RootObjectFactory { get; set; }
Property Value
Type Description
System.Func<System.Object>

The root object factory.

| Improve this Doc View Source

RootObjectType

Gets or sets the type of the root object.

Declaration
public Type RootObjectType { get; set; }
Property Value
Type Description
System.Type

The type of the root object.

| Improve this Doc View Source

SerializationService

Gets or sets the serialization service.

Declaration
public ISerializationService SerializationService { get; set; }
Property Value
Type Description
ISerializationService

The serialization service.

Implements

ISerializationContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable

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>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
ContextExtensions.WithIdentity<TContext>(TContext, IIdentity)
ContextExtensions.WithLogger<TContext>(TContext, ILogger)
ContextExtensions.AddResource<TContext>(TContext, IDisposable[])
MessageBrokerExtensions.CreateBrokeredMessageBuilder(IContext)
ContextExtensions.InitialData(IContext)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<(Object entity, ChangeState changeState)>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<Object>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<IChangeStateTrackableEntityEntry>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX