Building C# Enterprise Apps

  • Thread starter Thread starter Chris Fink
  • Start date Start date
C

Chris Fink

I work with a lot of development tools such as Seebeyond and Jacada,
enterprise tools written in java that allow developers to code and deploy
business processes. These tools are designed for developers. When using
these tools I basically write java code and when these apps are deployed
they run as a standalone service/application. My question is how such
applications are written and if this is possible in C#.

For example, assume I have written a c# application with an area that
allows the user to write their own c# code. This code could extend a
current application or be a new one. Once the developer is complete, they
will click on a button that will compile and save the code, and then pick
the location and schedule for it to run. How would this application be
designed? Behind the scenes I assume that this code will be compiled into a
class and then somehow run at a scheduled interval (for example if the user
choose to write a snippet that polled a directory and then picked up files
and ftp's them to another location every 5 mins).

Are there classes in the .net framework that faciliate this type of design
(compiling, deployment, etc?)
 
Hi Chris,

You can check out the Microsoft.CSharp namespace for the c# compiling
support in .NET Framework.
As for the deployment, you can check out the Assembly class (especially its
Load and LoadFrom methods), and probably the AppDomain class if you need to
load/unload the dynamically compiled assemblies "on the fly".
 
You can compile "on the fly" with Reflection.Emit(). That solves part of the
problem. Knowing what code requires some type of framework to run the code
in, but it is easy enough to set up this Framework.

Before spending a huge amount of time, check SOurceForge.net, as someone may
have this type of project built already. Also, www.gotdotnet.com has
workspaces that you can check for source projects.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top