Skip to content

Commit 6a2306f

Browse files
committed
Use AbpBootstrapper.IocManager instead of singleton instance.
1 parent ab1e5e6 commit 6a2306f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using Abp.Dependency;
32
using Abp.Web;
43
using Castle.Facilities.Logging;
54

@@ -9,7 +8,7 @@ public class MvcApplication : AbpWebApplication
98
{
109
protected override void Application_Start(object sender, EventArgs e)
1110
{
12-
IocManager.Instance.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
11+
AbpBootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
1312
base.Application_Start(sender, e);
1413
}
1514
}

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using Abp.Dependency;
32
using Abp.Web;
43
using Castle.Facilities.Logging;
54

@@ -9,7 +8,7 @@ public class MvcApplication : AbpWebApplication
98
{
109
protected override void Application_Start(object sender, EventArgs e)
1110
{
12-
IocManager.Instance.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
11+
AbpBootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
1312
base.Application_Start(sender, e);
1413
}
1514
}

0 commit comments

Comments
 (0)