static void InitializeScene() { #if UNITY_EDITOR // Dependency Injection // MEFBootstrapper.RegisterPath(UnityEngine.Application.dataPath + "/../Library/ScriptAssemblies"); #endif MEFBootstrapper.Build(); // Logging LoggerManager.StartLogging(); LoggerManager.CreateLogger(typeof(CoreManager)).LogMessage($"Initialization Complete."); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); // Allow File Browsing/File Viewing in Development. // app.UseDirectoryBrowser(); app.UseStaticFiles(); } // Configure Routing app.UseMvc(routes => { routes.MapRoute("default", "{controller}/{action}", new { controller = "Home", action = "Index" }); }); MEFBootstrapper.Build(); LoggerManager.StartLogging(); }
public static void AssemblyInit(TestContext context) { MEFBootstrapper.Build(); }
public static void InitializeLoggerTests(TestContext testContext) { MEFBootstrapper.Build(); LoggerManager.StartLogging(); }