C# 클래스 Ncqrs.Eventing.Storage.PropertyBagConverter

Converts an IEvent from/to a flattened structure suitable for storing in an IEventStore.
상속: IPropertyBagConverter
파일 보기 프로젝트 열기: SzymonPobiega/ncqrs 1 사용 예제들

공개 메소드들

메소드 설명
AddPostConversion ( Type targetType, IPropertyBagPostConverter converter ) : void

Adds a custom converter that resolves differences when converting an event or command with an earlier schema.

Convert ( object obj ) : PropertyBag

Converts a command or event into a property bag.

Convert ( PropertyBag propertyBag ) : object

Converts a command or event stored as a property bag back to its object representation.

If a post conversion was registered using AddPostConversion, it will be invoked after the default conversion has completed. Moreover, the actual type created can be overridden by providing a custom IPropertyBagTypeResolver through the TypeResolver property.

비공개 메소드들

메소드 설명
CreateInstanceOfType ( Type targetType ) : object
GetDestinationType ( PropertyBag bag ) : Type
InitializeInstancePropertiesFrom ( PropertyBag bag, object target ) : bool
InvokePostConverter ( object instance, PropertyBag bag ) : bool
IsPropertyWritable ( PropertyInfo propertyInfo ) : bool
RequiresConversion ( PropertyInfo targetProperty, object value ) : bool
SetPropertyValue ( object instance, PropertyInfo targetProperty, object value ) : bool

메소드 상세

AddPostConversion() 공개 메소드

Adds a custom converter that resolves differences when converting an event or command with an earlier schema.
public AddPostConversion ( Type targetType, IPropertyBagPostConverter converter ) : void
targetType System.Type The type of command or event for which to a add custom post conversion.
converter IPropertyBagPostConverter The converter object that will resolve the differences.
리턴 void

Convert() 공개 메소드

Converts a command or event into a property bag.
public Convert ( object obj ) : PropertyBag
obj object
리턴 PropertyBag

Convert() 공개 메소드

Converts a command or event stored as a property bag back to its object representation.
If a post conversion was registered using AddPostConversion, it will be invoked after the default conversion has completed. Moreover, the actual type created can be overridden by providing a custom IPropertyBagTypeResolver through the TypeResolver property.
public Convert ( PropertyBag propertyBag ) : object
propertyBag PropertyBag
리턴 object