File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,15 @@ Install-Package PosInformatique.AspNet.WebForms.DependencyInjection
1111
1212## Setting up
1313After adding the ** PosInformatique.AspNet.WebForms.DependencyInjection** package on your ASP .NET
14- WebForms project call the ` AddServiceCollection ` the following lines in the constructor of your ` HttpApplication ` class in the
14+ WebForms project call the ` AddServiceCollection ` the following lines in the `` Application_Start `` of your ` HttpApplication ` class in the
1515` Global.asax.cs ` code behind:
1616``` csharp
1717public class Global : HttpApplication
1818{
19- public Global ( )
19+ protected void Application_Start ( Object sender , EventArgs e )
2020 {
2121 ServicesConfig .RegisterServices (this .AddServiceCollection ());
22- }
2322
24- void Application_Start (object sender , EventArgs e )
25- {
2623 // Code that runs on application startup
2724 RouteConfig .RegisterRoutes (RouteTable .Routes );
2825 BundleConfig .RegisterBundles (BundleTable .Bundles );
You can’t perform that action at this time.
0 commit comments