示例#1
0
 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();
 }
示例#2
0
        internal static ModuleFinder CreateDefault()
        {
            var moduleFinder = new ModuleFinder
            {
                Prefix    = "tag:yaml.org,2002:",
                Suffix    = "",
                TrimStart = "",
                TrimEnd   = "Module"
            };

            return(moduleFinder);
        }