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
ファイルを表示 Open project: Microsoft/Dynamics-AX-Integration

Private Properties

Property Type Description
StatusPollerElapsed Task
getStatus Task
moveDataToTargetAsync Task
postExistingDataMessagesAsync Task
postProcessMessageAsync Task
processInprocessQueue Task
updateStatsAsync Task
writeStatusLogFileAsync Task

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

IDisposable impl

Private Methods

Method 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 method

public DefaultDataFlowNetwork ( DIXFRecurringJobsProcessor formInstance ) : Microsoft.Dynamics.AX.Framework.Tools.DataManagement.Serialization
formInstance DIXFRecurringJobsProcessor
return Microsoft.Dynamics.AX.Framework.Tools.DataManagement.Serialization

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

IDisposable impl
protected Dispose ( bool disposing ) : void
disposing bool
return void

Initialize() public method

public Initialize ( ) : void
return void

PostMessageAsync() public method

public PostMessageAsync ( ClientDataMessage dataMessage ) : Task
dataMessage ClientDataMessage
return Task

TearDown() public method

public TearDown ( ) : void
return void

processInputQueue() public method

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
return Task