//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"); }
public static void Run() { //Configure AutoFac AutofacWebapiConfig.Initialize(GlobalConfiguration.Configuration); }