Пример #1
0
        public void Bootstrap(IServiceRegistrar registrar)
        {
            registrar.Register <ITextLogFormatter, TextLogFormatter>();
            registrar.RegisterSingleton <IClock, SystemClock>();
            registrar.RegisterSingleton <IApplicationOptions, ApplicationOptions>();
            registrar.RegisterSingleton <ILogger, Logger>();

            if (Debugger.IsAttached)
            {
                registrar.RegisterSingleton <ILogDestination, DebugLogDestination>();
            }
        }
Пример #2
0
 public void Bootstrap(IServiceRegistrar registrar)
 {
     registrar.RegisterSingleton <IEntityContainer, EntityContainer>();
 }