private static PrevalenceEngine CreateRequestedEngine(System.Type systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine.ExceptionDuringRecoveryHandler handler)
{
if (Attribute.IsDefined(systemType, typeof(Bamboo.Prevalence.Attributes.TransparentPrevalenceAttribute), false))
{
return new TransparentPrevalenceEngine(systemType, prevalenceBase, formatter, handler);
}
else
{
return new PrevalenceEngine(systemType, prevalenceBase, formatter, handler);
}
}