C# Class NuGet.Services.Work.InvocationQueue

Afficher le fichier Open project: NuGet/NuGet.Services.Work Class Usage Examples

Méthodes publiques

Свойство Type Description
ArchiveContainer string
Null InvocationQueue

Méthodes publiques

Méthode Description
Complete ( InvocationState invocation, ExecutionResult result, string resultMessage, string logUrl ) : Task

Acknowledges that the request has completed successfully, removing the message from the queue.

Dequeue ( System.TimeSpan invisibleFor, CancellationToken token ) : Task

Dequeues the next request, if one is present

Enqueue ( string job, string source ) : Task
Enqueue ( string job, string source, string>.Dictionary payload ) : Task
Enqueue ( string job, string source, string>.Dictionary payload, System.TimeSpan invisibleFor, string jobInstanceName = null ) : Task
Enqueue ( string job, string source, string>.Dictionary payload, System.TimeSpan invisibleFor, string jobInstanceName, bool unlessAlreadyRunning ) : Task
Enqueue ( string job, string source, string>.Dictionary payload, bool unlessAlreadyRunning ) : Task
Enqueue ( string job, string source, bool unlessAlreadyRunning ) : Task
Extend ( InvocationState invocation, System.TimeSpan duration ) : Task

Extends the visibility timeout of the request. That is, the time during which the queue message is hidden from other clients

Get ( System.Guid id ) : Task
GetAll ( InvocationListCriteria criteria ) : Task>
GetAll ( InvocationListCriteria criteria, int limit ) : Task>
GetByInstance ( string instanceName, System.DateTime start, System.DateTime end, int limit ) : Task>
GetByJob ( string jobName, System.DateTime start, System.DateTime end, int limit ) : Task>
GetInstanceStatistics ( ) : Task>
GetJobStatistics ( ) : Task>
GetLatestByJob ( ) : Task>
GetLatestForJob ( string jobName ) : Task
GetMostRecentState ( string jobName ) : Task
GetPurgable ( ) : Task>
GetPurgable ( DateTimeOffset before ) : Task>
GetStatistics ( ) : Task
InvocationQueue ( System.Clock clock, string instanceName, Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer archiveContainer, System.Data.SqlClient.SqlConnectionStringBuilder connectionString ) : System
InvocationQueue ( System.Clock clock, string instanceName, ConfigurationHub config ) : System
Purge ( System.Guid id ) : Task
Purge ( IEnumerable ids ) : Task
PurgeCompleted ( ) : Task>
PurgeCompleted ( DateTimeOffset before ) : Task>
ReinitializeInvocationState ( ) : Task
Suspend ( InvocationState invocation, string>.Dictionary newPayload, System.TimeSpan suspendFor, string logUrl ) : Task
UpdateStatus ( InvocationState invocation, InvocationStatus status, ExecutionResult result ) : Task

Méthodes protégées

Méthode Description
InvocationQueue ( ) : System

Private Methods

Méthode Description
ArchiveInvocation ( IOrderedEnumerable invocationHistory ) : Task
Connect ( ) : Task
ConnectAndExec ( string proc, object parameters ) : Task
ConnectAndQuery ( string sql, object parameters = null ) : Task>
ConnectAndQuerySingle ( string sql, object parameters = null ) : Task
GetStatisticsCore ( string view ) : Task>
ProcessResult ( InvocationState invocation, InvocationState result ) : bool

Method Details

Complete() public méthode

Acknowledges that the request has completed successfully, removing the message from the queue.
public Complete ( InvocationState invocation, ExecutionResult result, string resultMessage, string logUrl ) : Task
invocation InvocationState
result ExecutionResult
resultMessage string
logUrl string
Résultat Task

Dequeue() public méthode

Dequeues the next request, if one is present
public Dequeue ( System.TimeSpan invisibleFor, CancellationToken token ) : Task
invisibleFor System.TimeSpan The period of time during which the message is invisble to other clients. The job must be d before this time or it will be dispatched again
token System.Threading.CancellationToken
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source ) : Task
job string
source string
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source, string>.Dictionary payload ) : Task
job string
source string
payload string>.Dictionary
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source, string>.Dictionary payload, System.TimeSpan invisibleFor, string jobInstanceName = null ) : Task
job string
source string
payload string>.Dictionary
invisibleFor System.TimeSpan
jobInstanceName string
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source, string>.Dictionary payload, System.TimeSpan invisibleFor, string jobInstanceName, bool unlessAlreadyRunning ) : Task
job string
source string
payload string>.Dictionary
invisibleFor System.TimeSpan
jobInstanceName string
unlessAlreadyRunning bool
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source, string>.Dictionary payload, bool unlessAlreadyRunning ) : Task
job string
source string
payload string>.Dictionary
unlessAlreadyRunning bool
Résultat Task

Enqueue() public méthode

public Enqueue ( string job, string source, bool unlessAlreadyRunning ) : Task
job string
source string
unlessAlreadyRunning bool
Résultat Task

Extend() public méthode

Extends the visibility timeout of the request. That is, the time during which the queue message is hidden from other clients
public Extend ( InvocationState invocation, System.TimeSpan duration ) : Task
invocation InvocationState
duration System.TimeSpan The duration from the time of invocation to hide the message
Résultat Task

Get() public méthode

public Get ( System.Guid id ) : Task
id System.Guid
Résultat Task

GetAll() public méthode

public GetAll ( InvocationListCriteria criteria ) : Task>
criteria InvocationListCriteria
Résultat Task>

GetAll() public méthode

public GetAll ( InvocationListCriteria criteria, int limit ) : Task>
criteria InvocationListCriteria
limit int
Résultat Task>

GetByInstance() public méthode

public GetByInstance ( string instanceName, System.DateTime start, System.DateTime end, int limit ) : Task>
instanceName string
start System.DateTime
end System.DateTime
limit int
Résultat Task>

GetByJob() public méthode

public GetByJob ( string jobName, System.DateTime start, System.DateTime end, int limit ) : Task>
jobName string
start System.DateTime
end System.DateTime
limit int
Résultat Task>

GetInstanceStatistics() public méthode

public GetInstanceStatistics ( ) : Task>
Résultat Task>

GetJobStatistics() public méthode

public GetJobStatistics ( ) : Task>
Résultat Task>

GetLatestByJob() public méthode

public GetLatestByJob ( ) : Task>
Résultat Task>

GetLatestForJob() public méthode

public GetLatestForJob ( string jobName ) : Task
jobName string
Résultat Task

GetMostRecentState() public méthode

public GetMostRecentState ( string jobName ) : Task
jobName string
Résultat Task

GetPurgable() public méthode

public GetPurgable ( ) : Task>
Résultat Task>

GetPurgable() public méthode

public GetPurgable ( DateTimeOffset before ) : Task>
before DateTimeOffset
Résultat Task>

GetStatistics() public méthode

public GetStatistics ( ) : Task
Résultat Task

InvocationQueue() protected méthode

protected InvocationQueue ( ) : System
Résultat System

InvocationQueue() public méthode

public InvocationQueue ( System.Clock clock, string instanceName, Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer archiveContainer, System.Data.SqlClient.SqlConnectionStringBuilder connectionString ) : System
clock System.Clock
instanceName string
archiveContainer Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
connectionString System.Data.SqlClient.SqlConnectionStringBuilder
Résultat System

InvocationQueue() public méthode

public InvocationQueue ( System.Clock clock, string instanceName, ConfigurationHub config ) : System
clock System.Clock
instanceName string
config ConfigurationHub
Résultat System

Purge() public méthode

public Purge ( System.Guid id ) : Task
id System.Guid
Résultat Task

Purge() public méthode

public Purge ( IEnumerable ids ) : Task
ids IEnumerable
Résultat Task

PurgeCompleted() public méthode

public PurgeCompleted ( ) : Task>
Résultat Task>

PurgeCompleted() public méthode

public PurgeCompleted ( DateTimeOffset before ) : Task>
before DateTimeOffset
Résultat Task>

ReinitializeInvocationState() public méthode

public ReinitializeInvocationState ( ) : Task
Résultat Task

Suspend() public méthode

public Suspend ( InvocationState invocation, string>.Dictionary newPayload, System.TimeSpan suspendFor, string logUrl ) : Task
invocation InvocationState
newPayload string>.Dictionary
suspendFor System.TimeSpan
logUrl string
Résultat Task

UpdateStatus() public méthode

public UpdateStatus ( InvocationState invocation, InvocationStatus status, ExecutionResult result ) : Task
invocation InvocationState
status InvocationStatus
result ExecutionResult
Résultat Task

Property Details

ArchiveContainer public_oe static_oe property

public static string ArchiveContainer
Résultat string

Null public_oe static_oe property

public static InvocationQueue,NuGet.Services.Work Null
Résultat InvocationQueue