GithubHelp home page GithubHelp logo

stakx / dynamicproxy.asyncinterceptor Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 3.0 30 KB

`AsyncInterceptor` base class for Castle DynamicProxy that aims at full support for all awaitable types (including custom ones).

License: MIT License

C# 100.00%
castle castle-core castle-dynamicproxy dynamicproxy async async-await async-interceptor interceptor awaitable dotnet

dynamicproxy.asyncinterceptor's People

Contributors

stakx avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

dynamicproxy.asyncinterceptor's Issues

Marking `Intercept` with `[AsyncStateMachine]` is probably a mistake

[AsyncStateMachine(typeof(AsyncStateMachine))]
void IInterceptor.Intercept(IInvocation invocation)

Applying this custom attribute here is probably a mistake, since according to the .NET API documentation page its purpose is this:

Indicates whether a method is marked with either the Async or async modifier.

Which isn't the case for AsyncInterceptor.Intercept.

Add missing capabilities to `IAsyncInvocation`

IAsyncInvocation currently offers only a subset of the capabilities available in the original IInvocation. Some of those have to be restricted (e.g. the ability to mutate by-ref arguments, or the ability to set the raw return value), but others are still missing and need to be added back.

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.