Coder Social home page Coder Social logo

2881099 / freesql.dynamicproxy Goto Github PK

View Code? Open in Web Editor NEW
41.0 4.0 12.0 147 KB

The dynamic proxy on The .NetCore or .NetFramework4.0+. Support asynchronous method interception, Method parameter interception, Property interception, multiple intercepts, dependency injection and inversion of control

License: MIT License

C# 100.00%
dynamicproxy aop aspect aop-plugin

freesql.dynamicproxy's Introduction

Anurag's github stats

freesql.dynamicproxy's People

Contributors

2881099 avatar dependabot[bot] avatar nmsazulx avatar whuanle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

freesql.dynamicproxy's Issues

能否支持Controller级动态代理?

RT,
image
image

尝试:

services.AddControllers().AddControllersAsServices();

调试
发现controller已经加入了动态代理服务

public static IServiceCollection ToDynamicProxyService(this IServiceCollection services)      

image

但是很遗憾,个人能力有限, 不知道什么原因,无法触发aop

对于异步操作,没有返回值的方法,会有异常

AspNetCore Startup.cs中增加如下语句。

[Custom]
public virtual async Task CreateKeyAsync(CustomDto customDto)
{
       await Task.FromResult("");
        Console.WriteLine($"CustomRepository.CreateAsync({customDto.Key}) value");
}

DynamicProxyExtensions.cs
捕获

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.