C# Class RecurringIntegrationApp.FileProcessor

Class that triggers the file processing logic. Also acts as the context class that selects one of the data processing strategy implementations.
Show file Open project: Microsoft/Dynamics-AX-Integration Class Usage Examples

Public Methods

Method Description
FileProcessor ( DIXFRecurringJobsProcessor formInstance ) : System

Ctor

FileProcessor ( DIXFRecurringJobsProcessor formInstance, DataFlowNetworkStrategy dataFlowNetworkObj ) : System

Ctor that explicitly picks a data processing class

Stop ( ) : void

Stop data processing

Private Methods

Method Description
Start ( ) : void
initDatasourceWatcher ( ) : void

Initialize the polling mechanism for the input location

sharedFolderFileCreatedHandler ( object source, FileSystemEventArgs e ) : void

File created handler for the folder location's file system watcher

Method Details

FileProcessor() public method

Ctor
public FileProcessor ( DIXFRecurringJobsProcessor formInstance ) : System
formInstance DIXFRecurringJobsProcessor Form instance. Required for writing log messages (on UI thread)
return System

FileProcessor() public method

Ctor that explicitly picks a data processing class
public FileProcessor ( DIXFRecurringJobsProcessor formInstance, DataFlowNetworkStrategy dataFlowNetworkObj ) : System
formInstance DIXFRecurringJobsProcessor Form instance. Required for writing log messages (on UI thread)
dataFlowNetworkObj DataFlowNetworkStrategy Data processing class object
return System

Stop() public method

Stop data processing
public Stop ( ) : void
return void