C# Class Microsoft.Samples.Synchronization.ClientServices.Formatters.SyncReader

Abstract class for SyncReader that individual format readers needs to extend
Inheritance: IDisposable
Show file Open project: rafek/SyncFx Class Usage Examples

Protected Properties

Property Type Description
_currentEntryWrapper EntryInfoWrapper
_currentNodeRead bool
_currentType ReaderItemType
_inputStream Stream
_knownTypes System.Type[]
_liveEntity IOfflineEntity
_reader XmlReader

Public Methods

Method Description
Dispose ( ) : void
GetConflict ( ) : Conflict

Get the conflict item

GetConflictTempId ( ) : string

Returns the TempId parsed from the current conflict object if present

GetHasMoreChangesValue ( ) : bool
GetItem ( ) : IOfflineEntity
GetServerBlob ( ) : byte[]
GetTempId ( ) : string

Returns the TempId parsed from the current object if present

HasConflict ( ) : bool

Check to see if the current object that was just parsed had a conflict element on it or not.

HasConflictTempId ( ) : bool

Check to see if the current conflict object that was just parsed has a tempId element on it or not.

HasTempId ( ) : bool

Check to see if the current object that was just parsed has a tempId element on it or not.

Next ( ) : bool
Start ( ) : void

Protected Methods

Method Description
CheckItemType ( ReaderItemType type ) : void
SyncReader ( Stream stream, Type knownTypes ) : System

Method Details

CheckItemType() protected method

protected CheckItemType ( ReaderItemType type ) : void
type ReaderItemType
return void

Dispose() public method

public Dispose ( ) : void
return void

GetConflict() public method

Get the conflict item
public GetConflict ( ) : Conflict
return Conflict

GetConflictTempId() public method

Returns the TempId parsed from the current conflict object if present
public GetConflictTempId ( ) : string
return string

GetHasMoreChangesValue() public abstract method

public abstract GetHasMoreChangesValue ( ) : bool
return bool

GetItem() public abstract method

public abstract GetItem ( ) : IOfflineEntity
return IOfflineEntity

GetServerBlob() public abstract method

public abstract GetServerBlob ( ) : byte[]
return byte[]

GetTempId() public method

Returns the TempId parsed from the current object if present
public GetTempId ( ) : string
return string

HasConflict() public method

Check to see if the current object that was just parsed had a conflict element on it or not.
public HasConflict ( ) : bool
return bool

HasConflictTempId() public method

Check to see if the current conflict object that was just parsed has a tempId element on it or not.
public HasConflictTempId ( ) : bool
return bool

HasTempId() public method

Check to see if the current object that was just parsed has a tempId element on it or not.
public HasTempId ( ) : bool
return bool

Next() public abstract method

public abstract Next ( ) : bool
return bool

Start() public abstract method

public abstract Start ( ) : void
return void

SyncReader() protected method

protected SyncReader ( Stream stream, Type knownTypes ) : System
stream Stream
knownTypes System.Type
return System

Property Details

_currentEntryWrapper protected property

protected EntryInfoWrapper,Microsoft.Samples.Synchronization.ClientServices.Formatters _currentEntryWrapper
return EntryInfoWrapper

_currentNodeRead protected property

protected bool _currentNodeRead
return bool

_currentType protected property

protected ReaderItemType _currentType
return ReaderItemType

_inputStream protected property

protected Stream _inputStream
return Stream

_knownTypes protected property

protected Type[],System _knownTypes
return System.Type[]

_liveEntity protected property

protected IOfflineEntity _liveEntity
return IOfflineEntity

_reader protected property

protected XmlReader _reader
return XmlReader