ruby on rails - Raise event in C# from external application? -


Can an event be extended to an external application in C #? Especially from Ruby? Could be the reason for me being in a C # in a Rail app.

I think that "external application" means you mean something similar to that of the C # code The process is out of place, besides, I believe that you are not discussing C # events - which is not a concept that exists outside of the .NET outside the implementation domain - they are nothing that is outside the code Are accessible from.

So the general answer to this question is "yes it is possible" - but since you are trying to send inter-action notifications indefinitely, you will need to use some sort of thing.

There is a rich API for performing IPC in NET, from designated pipes to DCOM, low-level networking protocols like TCP / IP, which approach you use depends on the environment. In which these processes need to be communicated (on one machine, on intranet machines, on the Internet, etc.). It depends on the type of information you are exchanging and how much you want to try. For .NET 3.5 applications, you can generally get a supported implementation by using it.

Obviously, it all depends on your ability to modify the implementation of NAT applications (read source code), which you are trying to enhance, if you can not do this. , And there is no current IPC mechanism in that code, then you may get stuck.

UPDATE: In response to your comment:

Will you suggest ease and time with priority? Both apps are running on the same machine, and I'm writing them myself

I would consider using the designated pipe is basically a UNIX concept - but they are also available on Windows . They change a simple programming interface (they are similar to working with the file), and does not require much use in a one-machine scenario.

Ruby (I'm less familiar with that), here are some links that you might find useful:

On the .NET side, here are some relevant links to search for more information:


Comments