C# Класс Bamboo.Prevalence.PrevalenceActivator

Factory for PrevalenceEngines.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.

The prevalence log files will be read from/written to the prevalenceBase directory.
If the directory does not exist it will be created.
If there are any log files already in the directory they will be used to restore the state of the system.

CreateEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.

CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine

See CreateEngine(System.Type,System.String,System.Boolean,PrevalenceEngine.ExceptionDuringRecoveryHandler).

CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration, PrevalenceEngine handler ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument with the option to automatically support the migration from older serialization layout versions.

CreateTransparentEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine

Creates a new transparent prevalence engine for the prevalent system type specified by the systemType argument.

A transparent prevalence engine automatically intercepts the calls made to the prevalent system and creates command objects as needed.

CreateTransparentEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter ) : PrevalenceEngine

CreateTransparentEngine(System.Type, string)

CreateTransparentEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine

CreateTransparentEngine(System.Type, string)

Приватные методы

Метод Описание
CheckEngineParameters ( System systemType, string prevalenceBase ) : void
CreateAutoVersionMigrationFormatter ( System type ) : BinaryFormatter
CreateBinaryFormatter ( ) : BinaryFormatter
CreateRequestedEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine

Описание методов

CreateEngine() публичный статический Метод

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.
The prevalence log files will be read from/written to the prevalenceBase directory.
If the directory does not exist it will be created.
If there are any log files already in the directory they will be used to restore the state of the system.
public static CreateEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
Результат PrevalenceEngine

CreateEngine() публичный статический Метод

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.
public static CreateEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
formatter System.Runtime.Serialization.Formatters.Binary.BinaryFormatter serialization formatter that should be used for reading from/writing to the logs
handler PrevalenceEngine delegate to receive notifications of any exceptions thrown during recovery
Результат PrevalenceEngine

CreateEngine() публичный статический Метод

See CreateEngine(System.Type,System.String,System.Boolean,PrevalenceEngine.ExceptionDuringRecoveryHandler).
public static CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine
systemType System
prevalenceBase string
autoVersionMigration bool
Результат PrevalenceEngine

CreateEngine() публичный статический Метод

Creates a new prevalence engine for the prevalent system type specified by the systemType argument with the option to automatically support the migration from older serialization layout versions.
public static CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration, PrevalenceEngine handler ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
autoVersionMigration bool include support for auto version migration
handler PrevalenceEngine delegate to receive notifications about any exceptions during recovery
Результат PrevalenceEngine

CreateTransparentEngine() публичный статический Метод

Creates a new transparent prevalence engine for the prevalent system type specified by the systemType argument.
A transparent prevalence engine automatically intercepts the calls made to the prevalent system and creates command objects as needed.
public static CreateTransparentEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine
systemType System prevalent system type, must be serializable and inherited from /// System.MarshalByRefObject
prevalenceBase string directory where to store log files
Результат PrevalenceEngine

CreateTransparentEngine() публичный статический Метод

CreateTransparentEngine(System.Type, string)
public static CreateTransparentEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter ) : PrevalenceEngine
systemType System
prevalenceBase string
formatter System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
Результат PrevalenceEngine

CreateTransparentEngine() публичный статический Метод

CreateTransparentEngine(System.Type, string)
public static CreateTransparentEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine
systemType System
prevalenceBase string
autoVersionMigration bool
Результат PrevalenceEngine