예제 #1
0
 private void MapDefaults()
 {
     DependencyFactory.Store(this);
     DependencyFactory.TryMap <ILogger, Logger>();
     DependencyFactory.TryMap <IDatabase, Database>();
     DependencyFactory.TryMap <IScheduler, Scheduler>();
     DependencyFactory.TryMap <ICommandService, CommandService>();
     DependencyFactory.TryMap <IReplier, Replier>();
     DependencyFactory.TryMap <Contexts.ICommandContext, CommandContext>();
     DependencyFactory.TryMap <IPermissionManager, PermissionManager>();
     DependencyFactory.TryMap <ISettingManager, SettingManager>();
     DependencyFactory.TryMap(typeof(ISettingEditorCollection <>), typeof(SettingEditorCollection <>));
     DependencyFactory.TryMap <IDownloader, CachedDownloader>();
     DependencyFactory.TryMap <ValueFormatter, ValueFormatter>();
     DependencyFactory.TryMap <ITextResourceManager, TextResourceManager>();
     DependencyFactory.TryMap <ITypeReaderCollection, TypeReaderCollection>();
 }