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>(); } }
public void Bootstrap(IServiceRegistrar registrar) { registrar.RegisterSingleton <IEntityContainer, EntityContainer>(); }