Bamboo.Prevalence.PrevalenceActivator.CreateEngine C# (CSharp) Метод

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
		public static PrevalenceEngine CreateEngine(System.Type systemType, string prevalenceBase, bool autoVersionMigration, PrevalenceEngine.ExceptionDuringRecoveryHandler handler)
		{
			CheckEngineParameters(systemType, prevalenceBase);

			BinaryFormatter formatter;

			if (autoVersionMigration)
			{
				formatter = CreateAutoVersionMigrationFormatter(systemType);
			}
			else
			{
				formatter = CreateBinaryFormatter();
			}

			return CreateRequestedEngine(systemType, prevalenceBase, formatter, handler);
		}

Same methods

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