Roslyn-based remote task platform

Source: Internet
Author: User

Some time ago, I had a naive idea. I want to transmit an Action or Func to a remote machine for execution. There are many problems. How to copy the context of the delegated execution. At first, we want to transmit the DLL of the Delegate and the referenced DLL to a remote machine. In this way, the context environment does not exist. Of course, the DLL in GAC does not need to be transmitted, and the object to be transmitted is limited to the custom DLL. However, this is not necessary. Later, on the day Microsoft founded the foundation, it happened to see Roslyn. It can parse and compile a string. With Rolyn extensions, you can even directly execute a piece of string code. It's amazing. So I came up with the idea of the following project. First, let's take a look at the figure. Let's take a look at my general ideas.

 

 

 

This project has not been fully written yet. Finally, I quoted a sentence from Github. Build software better, together. This project has been put on github. Address is https://github.com/freestyleSago/RemoteTaskPlatform

For me, this project is more practical than it is. So I hope you can give me more advice.Artech)The teacher is really awesome. Looking at his articles, I believe everyone will gain some benefits. Currently, there are too few materials for Roslyn and C #6.0, But I think C # can be changed to a scripting language with Roslyn. Resolution execution. It may be of little significance and has poor performance. But it's cool. It's a dream of mine. If you have a string, you can execute it for me.

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.