C# Class EventCentric.Transport.LongPoller

Inheritance: EventCentric.Messaging.Worker, ILongPoller
Show file Open project: Narvalex/EventCentric

Public Methods

Method Description
LongPoller ( IBus bus, ILogger log, System.TimeSpan timeout, string pollerName, IInMemoryEventPublisher inMemoryPublisher ) : System
PollSubscription ( string streamType, string url, string token, long fromVersion ) : void

Private Methods

Method Description
CreateHttpClient ( string token ) : HttpClient

More info on credentials: http://stackoverflow.com/questions/14627399/setting-authorization-header-of-httpclient

PollFromHttp ( string streamType, string url, string token, long fromVersion ) : void
PollInMemory ( string streamType, long fromVersion ) : void
PublishPollResponse ( PollResponse response ) : void

Method Details

LongPoller() public method

public LongPoller ( IBus bus, ILogger log, System.TimeSpan timeout, string pollerName, IInMemoryEventPublisher inMemoryPublisher ) : System
bus IBus
log ILogger
timeout System.TimeSpan
pollerName string
inMemoryPublisher IInMemoryEventPublisher
return System

PollSubscription() public method

public PollSubscription ( string streamType, string url, string token, long fromVersion ) : void
streamType string
url string
token string
fromVersion long
return void