//private static readonly Caliburn.Micro.ILog logger = Caliburn.Micro.LogManager.GetLog(
        //System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        //private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);

            var pluginAssembly = LoadPluginAssembly.LoadPlugin(typeof(IWriteUserData).Name);

            if (null != pluginAssembly)
            {
                AutofacWebapiConfig.AssemblyToLoad.AddRange(pluginAssembly);
            }

            AutofacWebapiConfig.Run();
            //logger.Info("save this test text");
        }
예제 #2
0
파일: Autofac.cs 프로젝트: Manish245/GitHub
 public static void Run()
 {
     //Configure AutoFac
     AutofacWebapiConfig.Initialize(GlobalConfiguration.Configuration);
 }