C# Class Stash.Serializers.Binary.AggregateSurrogateSelector

A custom surrogate selector to enable serialisation and deserialisation of referenced to aggregate roots by internal id.
Inheritance: ISurrogateSelector
Datei anzeigen Open project: AndyHitchman/Stash

Public Methods

Method Description
AggregateSurrogateSelector ( IRegisteredGraph registeredGraph ) : System
ChainSelector ( ISurrogateSelector selector ) : void
GetNextSelector ( ) : ISurrogateSelector
GetSurrogate ( Type type, StreamingContext context, ISurrogateSelector &selector ) : ISerializationSurrogate

Method Details

AggregateSurrogateSelector() public method

public AggregateSurrogateSelector ( IRegisteredGraph registeredGraph ) : System
registeredGraph IRegisteredGraph
return System

ChainSelector() public method

public ChainSelector ( ISurrogateSelector selector ) : void
selector ISurrogateSelector
return void

GetNextSelector() public method

public GetNextSelector ( ) : ISurrogateSelector
return ISurrogateSelector

GetSurrogate() public method

public GetSurrogate ( Type type, StreamingContext context, ISurrogateSelector &selector ) : ISerializationSurrogate
type System.Type
context System.Runtime.Serialization.StreamingContext
selector ISurrogateSelector
return ISerializationSurrogate