C# Class RecurringIntegrationApp.DefaultDataFlowNetwork

Concrete strategy that implements the DataFlowNetworkStrategy. Models a data flow network that represents the client side runtime/ state machine to process data files as they are submitted and processed with a recurring AX7 DIXF endpoint
Inheritance: DataFlowNetworkStrategy, IDisposable
Afficher le fichier Open project: Microsoft/Dynamics-AX-Integration

Private Properties

Свойство Type Description
StatusPollerElapsed Task
getStatus Task
moveDataToTargetAsync Task
postExistingDataMessagesAsync Task
postProcessMessageAsync Task
processInprocessQueue Task
updateStatsAsync Task
writeStatusLogFileAsync Task

Méthodes publiques

Méthode Description
DefaultDataFlowNetwork ( DIXFRecurringJobsProcessor formInstance ) : Microsoft.Dynamics.AX.Framework.Tools.DataManagement.Serialization
Dispose ( ) : void
Initialize ( ) : void
PostMessageAsync ( ClientDataMessage dataMessage ) : Task
TearDown ( ) : void
processInputQueue ( ) : Task

Processes input queue by dequeueing each item, moving them to the in process location and then enqueuing them to the in process queue.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

IDisposable impl

Private Methods

Méthode Description
StatusPollerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : Task

Timer callback to invoke status check on enqueued messages

getStatus ( string messageId ) : Task

Get submitted job status using the Enqueue response - MessageId

moveDataToTargetAsync ( ClientDataMessage sourceDataMessage, ClientDataMessage targetDataMessage ) : Task
postExistingDataMessagesAsync ( ) : Task
postProcessMessageAsync ( DataJobStatusDetail jobStatusDetail, ClientDataMessage dataMessage ) : Task

Process message once status is received by moving document to the appropriate folder and writing out a log for the processed document

processInprocessQueue ( ) : Task
updateStatsAsync ( DataJobStatusDetail jobStatusDetail, StatType statusType, ClientDataMessage targetDataMessage, HttpResponseMessage httpResponse = null ) : Task
writeStatusLogFileAsync ( DataJobStatusDetail jobStatusDetail, ClientDataMessage targetDataMessage, HttpResponseMessage httpResponse ) : Task

Write the DataJobStatusDetail out as a status log for either the successful of failed processing of a document.

Method Details

DefaultDataFlowNetwork() public méthode

public DefaultDataFlowNetwork ( DIXFRecurringJobsProcessor formInstance ) : Microsoft.Dynamics.AX.Framework.Tools.DataManagement.Serialization
formInstance DIXFRecurringJobsProcessor
Résultat Microsoft.Dynamics.AX.Framework.Tools.DataManagement.Serialization

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

IDisposable impl
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

PostMessageAsync() public méthode

public PostMessageAsync ( ClientDataMessage dataMessage ) : Task
dataMessage ClientDataMessage
Résultat Task

TearDown() public méthode

public TearDown ( ) : void
Résultat void

processInputQueue() public méthode

Processes input queue by dequeueing each item, moving them to the in process location and then enqueuing them to the in process queue.
public processInputQueue ( ) : Task
Résultat Task