예제 #1
0
    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.");
    }
예제 #2
0
        // 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();
        }
예제 #3
0
 public static void AssemblyInit(TestContext context)
 {
     MEFBootstrapper.Build();
 }
예제 #4
0
 public static void InitializeLoggerTests(TestContext testContext)
 {
     MEFBootstrapper.Build();
     LoggerManager.StartLogging();
 }