Giter Club home page Giter Club logo

net4's Introduction

AspectCore.Net4

AspectCore Framework是以AOP为核心的跨平台开发库,支持 .NET Standard1.6和.NET4.5及以上。 为在.NET4.0使用AspectCore Framework,特在此仓库维护AspectCore的.NET4.0分支。此分支包括:

  • AspectCore的核心库
  • AspectCore的Autofac扩展

nuget

PM> Install-Package AspectCore.Extensions.Net4

AspectCore提供RegisterAspectCore扩展方法在Autofac的Container中注册动态代理需要的服务,并提供AsInterfacesProxy和AsClassProxy扩展方法启用interface和class的代理:

var container = new ContainerBuilder();

container.RegisterAspectCore();

container.RegisterType<CustomService>().As<ICustomService>().InstancePerDependency().AsInterfacesProxy();

在Asp.Net Mvc中使用AspectCore参考 https://github.com/AspectCore/Sample/tree/master/net45/AspectCore.Sample.Net45

net4's People

Contributors

liuhaoyang avatar

Watchers

James Cloos avatar jian玄冰 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.