C# Class EventCentric.Transport.PollResponse

Mostra file Open project: Narvalex/EventCentric Class Usage Examples

Public Methods

Method Description
CreateErrorResponse ( string streamType ) : PollResponse
CreateInMemoryResponse ( bool errorDetected, bool newEventsWereFound, string streamType, IEnumerable events, long consumerVersion, long producerVersion ) : PollResponse
CreateSerializedResponse ( bool errorDetected, bool newEventsWereFound, string streamType, IEnumerable newRawEvents, long consumerVersion, long producerVersion ) : PollResponse
PollResponse ( ) : System.Collections.Generic

Private Methods

Method Description
CreateBaseResponse ( bool errorDetected, bool newEventsWereFound, string streamType, long consumerVersion, long producerVersion ) : PollResponse

Method Details

CreateErrorResponse() public static method

public static CreateErrorResponse ( string streamType ) : PollResponse
streamType string
return PollResponse

CreateInMemoryResponse() public static method

public static CreateInMemoryResponse ( bool errorDetected, bool newEventsWereFound, string streamType, IEnumerable events, long consumerVersion, long producerVersion ) : PollResponse
errorDetected bool
newEventsWereFound bool
streamType string
events IEnumerable
consumerVersion long
producerVersion long
return PollResponse

CreateSerializedResponse() public static method

public static CreateSerializedResponse ( bool errorDetected, bool newEventsWereFound, string streamType, IEnumerable newRawEvents, long consumerVersion, long producerVersion ) : PollResponse
errorDetected bool
newEventsWereFound bool
streamType string
newRawEvents IEnumerable
consumerVersion long
producerVersion long
return PollResponse

PollResponse() public method

public PollResponse ( ) : System.Collections.Generic
return System.Collections.Generic