C# Class Res.Core.Storage.QueueAllocation

Exibir arquivo Open project: heartysoft/res

Public Methods

Method Description
HasExpired ( System.DateTime utcNow ) : bool
MatchesQueue ( string context, string queueId ) : bool
MatchesQueueAndSubscriber ( string context, string queueId, string subscriberId ) : bool
QueueAllocation ( long allocationId, string queueId, string context, string subscriberId, System.DateTime expiresAtUtc, long startMarker, long endMarker ) : System
ReAllocate ( string subscriberId, System.DateTime expiresAt ) : QueueAllocation
WithinTimeRange ( EventInStorage eventInStorage ) : bool

Method Details

HasExpired() public method

public HasExpired ( System.DateTime utcNow ) : bool
utcNow System.DateTime
return bool

MatchesQueue() public method

public MatchesQueue ( string context, string queueId ) : bool
context string
queueId string
return bool

MatchesQueueAndSubscriber() public method

public MatchesQueueAndSubscriber ( string context, string queueId, string subscriberId ) : bool
context string
queueId string
subscriberId string
return bool

QueueAllocation() public method

public QueueAllocation ( long allocationId, string queueId, string context, string subscriberId, System.DateTime expiresAtUtc, long startMarker, long endMarker ) : System
allocationId long
queueId string
context string
subscriberId string
expiresAtUtc System.DateTime
startMarker long
endMarker long
return System

ReAllocate() public method

public ReAllocate ( string subscriberId, System.DateTime expiresAt ) : QueueAllocation
subscriberId string
expiresAt System.DateTime
return QueueAllocation

WithinTimeRange() public method

public WithinTimeRange ( EventInStorage eventInStorage ) : bool
eventInStorage EventInStorage
return bool