private static void AddRestorer <TRestorer>() where TRestorer : StatementRestorer, new() { var instance = new TRestorer(); RegisteredRestorers.Add(instance.ProcessingType(), instance); }
private static void AddRestorer <TRestorer>() where TRestorer : EntitiesRestorer, new() { var restorer = new TRestorer(); var type = restorer.GetProcessingType(); RegisteredRestorers[type] = restorer; }