RexSheng.CommonFramework.CastleWindsor 1.1.1

dotnet add package RexSheng.CommonFramework.CastleWindsor --version 1.1.1
NuGet\Install-Package RexSheng.CommonFramework.CastleWindsor -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RexSheng.CommonFramework.CastleWindsor" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RexSheng.CommonFramework.CastleWindsor --version 1.1.1
#r "nuget: RexSheng.CommonFramework.CastleWindsor, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RexSheng.CommonFramework.CastleWindsor as a Cake Addin
#addin nuget:?package=RexSheng.CommonFramework.CastleWindsor&version=1.1.1

// Install RexSheng.CommonFramework.CastleWindsor as a Cake Tool
#tool nuget:?package=RexSheng.CommonFramework.CastleWindsor&version=1.1.1

在项目的application_start.cs中输入以下初始化代码:

    /// <summary>
    /// Initialise the container.
    /// </summary>    
    protected void Application_Start()
    {
        CommonFrameworkBuilder.Initialize();
        CommonFrameworkBuilder.AddAssembly<IBaseDependency>(Assembly.GetExecutingAssembly());
        CommonFrameworkBuilder.AddEfService()
            .SetConnectionStringProvider(m => ConnectionStringProviderExtensions.GetWebConfigConnectionString(m), "WebAPIDemoEntities");
        CommonFrameworkBuilder.AddEmailService()
            .Config(cfg => cfg.setHost("smtp.126.com").setSenderAddress("shengxupeng@126.com").setEmailSenderName("shengxupeng").setEmailPwd("999").setKey("aaa"))
            .Config(cfg => cfg.setHost("smtp.exmail.qq.com").setSenderAddress("991823949@qq.com").setEmailSenderName("shengxupeng").setEmailPwd("9999").setKey("bbb").isDefault());
        CommonFrameworkBuilder.AddLog4Net().Configure("Log.xml");
        CommonFrameworkBuilder.AddDtoService(mapper =>
        {

        }
         ,
            "CommonFramework.Core");
    }
    protected void Application_End()
    {
        CommonFrameworkBuilder.Dispose();
    }
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 990 11/7/2017
1.1.0 829 11/7/2017