Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1100669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:55:01+00:00 2026-05-17T00:55:01+00:00

Is there a way to raise an event in C# from an external application?

  • 0

Is there a way to raise an event in C# from an external application? In particular from Ruby? I have need to cause something to happen in C# from a rails application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:55:02+00:00Added an answer on May 17, 2026 at 12:55 am

    I assume that by “external application” you mean something that is outside of the process space of the C# code. Also, I assume that you’re not referring to C# events – which aren’t a concept that exists outside of the implementation domain of .NET – they aren’t something that are accessible from outside of the code.

    So the general answer to this question is is “yes it is possible” – but since you’re essentially trying to send inter-process notifications you are going to need to use some kind of IPC mechanism.

    .NET has a rich API for performing IPC, ranging from named pipes, to DCOM, to low-level networking protocols like TCP/IP. Which approach you use depends on the environment in which these process need to communicate (on a single machine, across machines on an intranet, over the internet, etc). It will also depend on the kind of information you’re exchanging and how much effort you’re willing to expend. For .NET 3.5 applications you can usually find an supported implementation using WCF as the unifying framework.

    Obviously, all of this depends on your ability to modify the implementation (read source code) of the .NET application you’re trying to raise an event within. If you can’t do that, and there is no existing IPC mechanism in that code, you are likely stuck.

    UPDATE: In response to your comment:

    What would you recommend with priority of ease and time.
    Both apps are running on the same machine, and I am writing them both myself

    I would consider using Named Pipes. Named pipes are originally a Unix concept – but they are available on Windows as well. They have a vary simple programming interface (they are similar to working with files), and don’t require much to use in a single-machine scenario.

    On the Ruby side (which I am less familiar with), here are some link that you may find useful:

    • Using Named Pipes for Interprocess Communication In Ruby
    • Communicating Between Ruby and PHP Using Named Pipes

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

    • WCF Communication Through Named Pipes With Non .NET Apps
    • .NET 3.5 Adds Named Pipes Support
    • .NET Named Pipe Server Stream Class
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way for something to raise and exception that does not descend
is there way how to get name ov event from Lambda expression like with
My application is fed data from an external device. After each data point, there
Is there a good way to find out which exceptions a procedure/function can raise
Suppose I have a non-recurring event that needs to be raised X seconds from
There is a problem with standard System.Timers.Timer behaviour. The timer raise Elapsed event with
I may have gone crazy... but I am hoping there is a way to
Is there any way to send array of strings from JavaScript to PHP? I
I have a button: <Button x:Name=MyButton Command=SomeCommand/> Is there a way to execute the
Is there a way of doing a find_by_x that raises an exception if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.