private MethodConfiguration CreateMethodConfiguration(string name, IncrementalizationStrategy strategy, params IncrementalizationStrategy[] allowed) { var conf = new MethodConfiguration() { MethodIdentifier = name, Strategy = strategy }; conf.AllowedStrategies.AddRange(allowed); return conf; }
private MethodConfiguration CreateMethodConfiguration(string name, IncrementalizationStrategy strategy, params IncrementalizationStrategy[] allowed) { var conf = new MethodConfiguration() { MethodIdentifier = name, Strategy = strategy }; conf.AllowedStrategies.AddRange(allowed); return(conf); }
public ConfiguredNotifySystem(IModelRepository repository, Configuration configuration, IncrementalizationStrategy defaultStrategy = IncrementalizationStrategy.InstructionLevel) { if (repository == null) { throw new ArgumentNullException("repository"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } repositoryChange = new RepositoryChangeNotificationSystem(repository); foreach (var methodConf in configuration.MethodConfigurations) { strategies.Add(methodConf.MethodIdentifier, methodConf.Strategy); } this.defaultStrategy = defaultStrategy; }
public RecordingNotifySystem(INotifySystem inner) { Inner = inner ?? NotifySystem.DefaultSystem; Configuration = new Configuration(); DefaultStrategy = IncrementalizationStrategy.InstructionLevel; }