C# 클래스 GSF.IO.MultipleDestinationExporter

상속: System.ComponentModel.Component, ISupportLifecycle, ISupportInitialize, IProvideStatus, IPersistSettings
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BeginInit void
CopyFileToDestination void
DeleteTemporaryFile void
EndInit void
ExecuteExports void
InitializeExporter void
Shutdown void

공개 메소드들

메소드 설명
ExportData ( byte fileData ) : void

Start multiple file export.

This is assumed to be the full content of the file to export. This class does not queue data since the export is not intended to append to an existing file but rather replace an existing one.

ExportData ( string fileData ) : void

Start multiple file export.

This is assumed to be the full content of the file to export. This class does not queue data since the export is not intended to append to an existing file but rather replace an existing one.

Initialize ( ) : void

Initializes (or reinitializes) MultipleDestinationExporter from configuration settings.

If not being used as a component (i.e., user creates their own instance of this class), this method must be called in order to initialize exports. Event if used as a component this method can be called at anytime to reinitialize the exports with new configuration information.

Initialize ( IEnumerable defaultDestinations ) : void

Initializes (or reinitializes) MultipleDestinationExporter from configuration settings.

If not being used as a component (i.e., user creates their own instance of this class), this method must be called in order to initialize exports. Even if used as a component this method can be called at anytime to reinitialize the exports with new configuration information.

LoadSettings ( ) : void

Loads saved settings for the MultipleDestinationExporter object from the config file if the PersistSettings property is set to true.

MultipleDestinationExporter ( ) : System

Initializes a new instance of the MultipleDestinationExporter class.

MultipleDestinationExporter ( IContainer container ) : System

Initializes a new instance of the MultipleDestinationExporter class.

MultipleDestinationExporter ( string settingsCategory, int exportTimeout ) : System

Initializes a new instance of the MultipleDestinationExporter class.

SaveSettings ( ) : void

Saves settings for the MultipleDestinationExporter object to the config file if the PersistSettings property is set to true.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the MultipleDestinationExporter object and optionally releases the managed resources.

OnInitialized ( ) : void

Raises the Initialized event.

OnProcessException ( Exception ex ) : void

Raises ProcessException event.

OnStatusMessage ( string status ) : void

Raises the StatusMessage event.

비공개 메소드들

메소드 설명
BeginInit ( ) : void
CopyFileToDestination ( object state ) : void
DeleteTemporaryFile ( string filename ) : void
EndInit ( ) : void
ExecuteExports ( ) : void
InitializeExporter ( object state ) : void
Shutdown ( ) : void

메소드 상세

Dispose() 보호된 메소드

Releases the unmanaged resources used by the MultipleDestinationExporter object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

ExportData() 공개 메소드

Start multiple file export.
This is assumed to be the full content of the file to export. This class does not queue data since the export is not intended to append to an existing file but rather replace an existing one.
public ExportData ( byte fileData ) : void
fileData byte Binary data to export to each destination.
리턴 void

ExportData() 공개 메소드

Start multiple file export.
This is assumed to be the full content of the file to export. This class does not queue data since the export is not intended to append to an existing file but rather replace an existing one.
public ExportData ( string fileData ) : void
fileData string Text based data to export to each destination.
리턴 void

Initialize() 공개 메소드

Initializes (or reinitializes) MultipleDestinationExporter from configuration settings.
If not being used as a component (i.e., user creates their own instance of this class), this method must be called in order to initialize exports. Event if used as a component this method can be called at anytime to reinitialize the exports with new configuration information.
public Initialize ( ) : void
리턴 void

Initialize() 공개 메소드

Initializes (or reinitializes) MultipleDestinationExporter from configuration settings.
If not being used as a component (i.e., user creates their own instance of this class), this method must be called in order to initialize exports. Even if used as a component this method can be called at anytime to reinitialize the exports with new configuration information.
public Initialize ( IEnumerable defaultDestinations ) : void
defaultDestinations IEnumerable Provides a default set of export destinations if none exist in configuration settings.
리턴 void

LoadSettings() 공개 메소드

Loads saved settings for the MultipleDestinationExporter object from the config file if the PersistSettings property is set to true.
has a value of null or empty string.
public LoadSettings ( ) : void
리턴 void

MultipleDestinationExporter() 공개 메소드

Initializes a new instance of the MultipleDestinationExporter class.
public MultipleDestinationExporter ( ) : System
리턴 System

MultipleDestinationExporter() 공개 메소드

Initializes a new instance of the MultipleDestinationExporter class.
public MultipleDestinationExporter ( IContainer container ) : System
container IContainer object that contains the .
리턴 System

MultipleDestinationExporter() 공개 메소드

Initializes a new instance of the MultipleDestinationExporter class.
public MultipleDestinationExporter ( string settingsCategory, int exportTimeout ) : System
settingsCategory string The config file settings category under which the export destinations are defined.
exportTimeout int The total allowed time in milliseconds for each export to execute.
리턴 System

OnInitialized() 보호된 메소드

Raises the Initialized event.
protected OnInitialized ( ) : void
리턴 void

OnProcessException() 보호된 메소드

Raises ProcessException event.
protected OnProcessException ( Exception ex ) : void
ex System.Exception Processing .
리턴 void

OnStatusMessage() 보호된 메소드

Raises the StatusMessage event.
protected OnStatusMessage ( string status ) : void
status string Status message to report.
리턴 void

SaveSettings() 공개 메소드

Saves settings for the MultipleDestinationExporter object to the config file if the PersistSettings property is set to true.
has a value of null or empty string.
public SaveSettings ( ) : void
리턴 void