C# Класс GSF.IO.MultipleDestinationExporter

Наследование: System.ComponentModel.Component, ISupportLifecycle, ISupportInitialize, IProvideStatus, IPersistSettings
Показать файл Открыть проект Примеры использования класса

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