Thinking about the simplest prototype of a project that calls more than 100 existing DLL 2

Source: Internet
Author: User

The simplest prototype:

Assume that a Class Library provides a method

 
  Public ClassUsermanager
{
PublicOutput getuser (input );{...}
}

The input onput class represents the format of the input and output parameters respectively. serializable cannot be serialized directly across domains.

Usermanager is not serializable and cannot use marshal by value for cross-origin operations.

Usermanager does not inherit marshalbyrefobject and cannot perform cross-origin operations by Marshal by refrence.

 

There are several small technical difficulties

1. How to turn a class that does not implement serializable into a serializable class required for cross-origin operations (the following chapter solves this problem)

2. Is there a simple way to implement cross-origin simplicity?CodeOperation, just like calling a DLL directly

3. Can the final implementation be debugged?

4. Whether other functions can be attached. For example, you can enable or disable logs for all interfaces without writing additional code (Method Input and Output execution time)

5. The Code should be concentrated in the framework. The people who actually use the business should be as convenient or transparent as possible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.