public override void Load() { Bind <IIODefinition>().To <ConsoleIODefinition>().InSingletonScope(); Bind <ITextFileInput>().To <FrameworkTextFileInput>().InSingletonScope(); Bind <ITextFileOutput>().To <FrameworkTextFileOutput>().InSingletonScope(); Bind <IModuleFinder>().ToMethod(x => ModuleFinder.CreateDefault()).InSingletonScope(); }
internal static ModuleFinder CreateDefault() { var moduleFinder = new ModuleFinder { Prefix = "tag:yaml.org,2002:", Suffix = "", TrimStart = "", TrimEnd = "Module" }; return(moduleFinder); }