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 8227813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:15:16+00:00 2026-06-07T16:15:16+00:00

Simply, a console application with three classes as following, namespace Stackoverflow { public class

  • 0

Simply, a console application with three classes as following,

namespace Stackoverflow
{
    public class Program
    {
        public static void Main ( string [ ] args )
        {
            new Consumer ( );
            new Provider ( );

            Console . WriteLine ( "Exit ..." );
            Console . ReadKey ( );

        }
    }

    public class Consumer
    {
        public Consumer ( )
        {
            using ( Process Process = Process . GetCurrentProcess ( ) )
            {
                Console . WriteLine ( "Consumer : " + Process . ProcessName );
            }
        }
    }

    public class Provider
    {
        public Provider ( )
        {
            using ( Process Process = Process . GetCurrentProcess ( ) )
            {
                Console . WriteLine ( "Provider : " + Process . ProcessName );
            }
        }
    }
}

Output will be as following,

Consumer : Stackoverflow.vshost
Provider : Stackoverflow.vshost
Exit ...

Question :
Can I attach each class to different Process, without separating them into different solutions, especially Provider & Consumer classes ?
It’s for testing purposes. Mobile agents related testing.

Thanks in advance.
Regards,

  • 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-06-07T16:15:19+00:00Added an answer on June 7, 2026 at 4:15 pm

    I am not sure if this will exactly do what you are trying to achieve, but you can load the code into different AppDomain’s during execution of the main application. The following MSDN Article contains information for doing so with a full example.

    From the MSDN Article on AppDomain’s:

    Application domains provide a flexible and secure method of isolating
    running applications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets write simple console application (debug mode): static void Main(string[] args) { Process p
Lets write simple console application: static void Main(string[] args) { IList<Thread> threads = new
class Program { static void Main(string[] args) { String value = Two; Type enumType
I have a C# console application which simply pulls information from a Sql Server
I've created a simple console Java application that is built with Maven. Is there
Was creating a simple console application to do some prototyping and was shocked to
I have written very very simple console application which supports some command line options.
I have a simple C# Console application in which I use FileSystemWatcher and Moving
i have a simple .EXE console application, written in C# via Visual Studio 2008.
i've got a pretty simple .NET console application. I wish to pass in some

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.