public override IViolation<ICliSpecification> Check( ICliSpecification subject, IBehaviors context = null ) { ConfigBehavior cb = null; context?.TryGet( out cb ); ICliConfig conf = cb?.Config; foreach( Func<UniqueNames, ICliSpecification, ICliConfig, IViolation<ICliSpecification>> check in __checks ) { IViolation<ICliSpecification> violation = check( this, subject, conf ); if( violation != NonViolation<ICliSpecification>.Instance ) return violation; } return NonViolation<ICliSpecification>.Instance; }
public static IConfig Create(String path, ConfigType type, ConfigOptions options) { return(new Config(ConfigBehavior.Create(path, type, options))); }
public static IConfig Create(String path, ConfigType type) { return(new Config(ConfigBehavior.Create(path, type))); }
public static IConfig Create(String path) { return(new Config(ConfigBehavior.Create(path))); }
public Config(String path, ConfigType type = DefaultConfigType, ConfigOptions options = DefaultConfigOptions) : this(ConfigBehavior.Create(path, type, options)) { }
public new static IPropertyConfig Create(String path, ConfigOptions options) { return(new PropertyConfig(ConfigBehavior.Create(path, options))); }
public new static IPropertyConfig Create(String path, ConfigType type) { return(new PropertyConfig(ConfigBehavior.Create(path, type))); }