├── SampleMvcWebApplication ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── About.cshtml │ │ └── Contact.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ └── _Layout.cshtml │ └── Web.config ├── favicon.ico ├── Global.asax ├── App_Start │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ └── AppStartup.cs ├── SampleServices │ ├── SingletonService.cs │ ├── TransientService.cs │ └── ScopedService.cs ├── Global.asax.cs ├── Properties │ └── AssemblyInfo.cs ├── packages.config ├── Controllers │ ├── MessageHub.cs │ └── HomeController.cs └── Web.config ├── SampleWebApiService ├── Global.asax ├── Global.asax.cs ├── SampleServices │ ├── SingletonService.cs │ ├── TransientService.cs │ └── ScopedService.cs ├── Properties │ └── AssemblyInfo.cs ├── packages.config ├── Controllers │ └── ValuesController.cs ├── Web.config └── App_Start │ └── AppStartup.cs ├── SampleWebApplicationVB ├── Global.asax ├── Site.master.vb ├── Default.aspx ├── AppCode │ └── DevHttpClientHandler.vb ├── Default.aspx.designer.vb ├── Default.aspx.vb ├── Site.Master ├── Global.asax.vb ├── Properties │ └── AssemblyInfo.vb ├── Web.config ├── App_Start │ └── SampleApplicationStart.vb └── packages.config ├── SampleWebApplication ├── Global.asax ├── InjectedControl.ascx ├── SingletonService.cs ├── Service1.cs ├── SampleExcludedExternalControl.ascx ├── SampleIncludedExternalControl.ascx ├── InjectedControl.ascx.designer.cs ├── packages.config ├── Site.master.cs ├── SampleIncludedExternalControl.ascx.cs ├── Service4.cs ├── SampleExcludedExternalControl.ascx.cs ├── InjectedControl.ascx.cs ├── Service2.cs ├── Web.config ├── SampleExcludedExternalControl.ascx.designer.cs ├── SampleIncludedExternalControl.ascx.designer.cs ├── Properties │ └── AssemblyInfo.cs ├── Global.asax.cs ├── Site.Master ├── Site.Master.designer.cs ├── Default.aspx ├── Default.aspx.cs ├── App_Start │ ├── SampleApplicationStart.template.cs │ └── SampleApplicationStart.cs ├── Default.aspx.designer.cs └── Service3.cs ├── SampleWcfApplication ├── Service1.svc ├── SampleServices │ ├── SingletonService.cs │ ├── TransientService.cs │ └── ScopedService.cs ├── Web.config └── IService1.cs ├── packages ├── repositories.config └── Microsoft.Web.Infrastructure.1.0.0.0 │ ├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg │ └── lib │ └── net40 │ └── Microsoft.Web.Infrastructure.dll ├── AspNetDependencyInjection.Tests ├── TestExtensions.cs ├── Properties │ └── AssemblyInfo.cs └── WebApi │ ├── AspNetWebStack │ ├── ModelBinderAttributeTest.cs │ ├── ControllerServicesTests.cs │ ├── DefaultHttpControllerActivatorTest.cs │ └── BaseWebApiWebStackTests.cs │ └── WebApiDependencyResolverTests.cs ├── AspNetDependencyInjection ├── AspNetDependencyInjection.Services │ ├── ServiceProviderAccessor │ │ ├── IServiceProviderAccessor.cs │ │ └── DefaultServiceProviderAccessor.cs │ ├── WebConfiguration │ │ ├── ServiceCollectionExtensions.cs │ │ ├── IWebConfiguration.cs │ │ ├── PassthroughWebConfiguration.cs │ │ └── DefaultWebConfiguration.cs │ ├── DependencyInjectionOverrides │ │ ├── IDependencyInjectionOverrideService.cs │ │ └── ServiceCollectionExtensions.cs │ ├── HttpContextAccessor │ │ ├── IHttpContextAccessor.cs │ │ ├── HttpContextAccessor.cs │ │ └── ServiceCollectionExtensions.cs │ └── ServiceFactory │ │ └── IServiceFactory.cs ├── AspNetDependencyInjection.Configuration │ ├── AspNetDependencyInjectionConfigurationSection.cs │ ├── NamespaceConfigurationElement.cs │ ├── IgnoreNamespaceConfigurationElementCollection.cs │ └── NamespacePrefix.cs ├── AspNetDependencyInjection │ ├── IDependencyInjectionClient.cs │ ├── ActivatorServiceProvider.cs │ ├── DependencyInjectionWebObjectActivator.cs │ ├── ApplicationDependencyInjectionConfiguration.cs │ └── Extensions.cs ├── AspNetDependencyInjection.csproj └── Properties │ └── AssemblyInfo.cs ├── AspNetDependencyInjection.Mvc ├── Properties │ └── AssemblyInfo.cs ├── ApplicationDependencyInjectionBuilderExtensions.cs ├── AspNetDependencyInjection.Mvc.csproj ├── Notes.txt └── DependencyInjectionMvcControllerActivator.cs ├── LICENSE.txt ├── AspNetDependencyInjection.SignalR ├── Unscoped │ ├── UnscopedAndiSignalRHubActivator.cs │ └── UnscopedAndiSignalRDependencyResolver.cs ├── AspNetDependencyInjection.SignalR.csproj ├── Scoped │ └── ScopedAndiSignalRHubActivator.cs ├── Properties │ └── AssemblyInfo.cs └── ApplicationDependencyInjectionBuilderExtensions.cs ├── AspNetDependencyInjection.WebApi ├── AspNetDependencyInjection.WebApi.csproj └── Properties │ └── AssemblyInfo.cs ├── AspNetDependencyInjection.Wcf ├── AspNetDependencyInjection.Wcf.csproj ├── Properties │ └── AssemblyInfo.cs └── WcfServiceDI │ ├── AndiInstanceProvider.cs │ └── AndiWebServiceHostFactory.cs ├── Common.props └── AspNetDependencyInjection.sln /SampleMvcWebApplication/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /SampleMvcWebApplication/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daiplusplus/AspNetDependencyInjection/HEAD/SampleMvcWebApplication/favicon.ico -------------------------------------------------------------------------------- /SampleWebApiService/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="SampleWebApiService.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /SampleMvcWebApplication/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="SampleMvcWebApplication.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /SampleWebApplicationVB/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.vb" Inherits="SampleWebApplicationVB.SampleHttpApplication" Language="VB" %> 2 | -------------------------------------------------------------------------------- /SampleWebApplication/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="SampleWebApplication.SampleWebApplicationHttpApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /SampleWcfApplication/Service1.svc: -------------------------------------------------------------------------------- 1 | <%@ ServiceHost Language="C#" Service="AspNetDependencyInjection.Wcf.Service1" Factory="AspNetDependencyInjection.Wcf.AndiWebServiceHostFactory" %> -------------------------------------------------------------------------------- /SampleMvcWebApplication/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About"; 3 | } 4 |
Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /packages/repositories.config: -------------------------------------------------------------------------------- 1 | 2 |13 | To learn more about AspNetDependencyInjection, visit https://github.com/Jehoel/AspNetDependencyInjection. 14 |
15 | 16 |