Dynamic Proxies ASP.NET script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: DynamicProxies.zip
  • Last update:
  • Platform: Windows
  • Language: ASP.NET
  • Price:GPL
  • Company: Jason Bock (View more)

Dynamic Proxies script description:




Publisher review:
Dynamic Proxies is an assembly that allows you to make a dynamic proxy of an object whose class is non-sealed and non-abstract. This is an assembly that allows you to make a dynamic proxy of an object whose class is non-sealed and non-abstract. The new object inherits from the given object's class, wraps the given object as a private field, and delegates all virtual invocations to this inner object. It also calls a set of invocation handlers to support pre- and post-invocation notifications. The test suite contains numerous code example that demonstrates how the proxies are created. There's also a WinForms client that shows how to use a proxy object.

The assembly also has two key features that will help the user create and maintain sound proxies. The first feature is the ability to verify the generated proxy code (this can be turned on either via configuration or by setting the verify argument to true on the ProxyContext constructor). Underneath the scenes, peverify.exe is used to accomplish this, but the errors are broken down into useable classes. These classes are defined in the AssemblyVerifier.dll assembly that DynamicProxies.dll uses. Essentially, if something is non-verifiable with the proxy code generation, the user will get a VerificationException, which contains a list of verification errors.

The other key feature is the ability to debug the generated proxy code (this can be turned on either via configuration or by setting the generateDebugging argument to true on the ProxyContext constructor). Underneath the scenes, an IL file is generated on the fly, so the user can easily step into the proxy code and see what's going on.

Here's a list of a number of other interesting features:
- The Proxy.Create() call is generic, so the return type is type-safe.
- The user can specify if they want transient and/or persistable proxies.
- Generics are supported. This includes generic methods.
- All proxies implement an interface called IProxy, with a read-only Target property so you can always get to the underlying wrapped object in a type-safe manner.
- The ProxyContext object is configurable, so you can turn verification and debugging on and off along with the type of assembly generation without having to recompile code.
- The name generation is consistent. Assemblies have the original type name plus ".Proxy". The type name is the same with "Proxy" appended, and hooked virtual methods have "Proxy" appended to their names.
- If anyone was trying to use the proxy code I have in my "CIL Programming" book...don't bother using it. It has numerous bugs, all of which are fixed with this release.
Dynamic Proxies is a ASP.NET script for Development Tools scripts design by Jason Bock. It runs on following operating system: Windows.

Operating system:
Windows

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5