public static void StartDefault() { var configSource = new SystemConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); }
protected void Application_Start(object sender, EventArgs e) { var configSource = new WebConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); }
public void BootstrapperShutdownTest() { var configSource = new DefaultUnityStaticConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); bootstrapper.Shutdown(); }
public static void Main(string[] args) { var configSource = new SystemConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); EventfulRestClient(); Console.ReadLine(); Console.WriteLine("Press a key to exit.."); Console.ReadLine(); }
public void BootstrapperStartupTest() { var configSource = new SystemConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.AddBootstrapperTasks(new BootstrapperTask()); bootstrapper.Startup(); var expected = typeof(TraceLoggerFactory); var actual = ServiceLocator.Current.GetInstance <ILoggerFactory>().GetType(); Assert.AreEqual(expected, actual); }
private static void Main(string[] args) { var configSource = new SystemConfigurationSource(); var bootstrapperConfig = new UnityBootstrapperConfiguration(configSource); var bootstrapper = new UnityBootstrapper(bootstrapperConfig); bootstrapper.Startup(); WriteContainerInfo(); //LoggerSample(); //SettingSample(); CachedSettingBehaviorSample(); //FindTypes(); WriteContainerInfo(); Console.ReadLine(); }