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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:44:14+00:00 2026-05-15T08:44:14+00:00

I have a windows service which runs like a scheduler, it extends an interface

  • 0

I have a windows service which runs like a scheduler, it extends an interface which can be implemented by other classes to become plugin to this service. All plug-ins (eg Plugin1, Plugin2…) would be dropped in sub folder of PlugIn such as PlugIn\Plugin1, PlugIn\Plugin2 respectively. At runtime each of the subfolders (Plugin1, Plugin2) would be searched for any assembly implementing the interface and a timer would be scheduled with the corresponding dlls method.

Now in case Plugin1 & Plugin2 share a common.dll (private assembly) the scheduler loads it only once (whichever occured first). If for some business reasons we update common.dll for Plugin1 and copy it in Plugin1 folder, keeping Plugin2 with previous version, which becomes a problem because now common.dll would be loaded non deterministicaly.

Is there a way I could tie the set of binaries (from the respective folder) with the timer at the time of scheduling or later?

  • 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-15T08:44:15+00:00Added an answer on May 15, 2026 at 8:44 am

    It sounds to me like the thing to do here is to create an AppDomain per plugin / implementation, and use each plugins folder as the bin path. That way, each plugin can run with its own set of completely isolated assemblies.

    The other (even more isolated) approach is to create a Process per call; that can be very effective and is simpler than handling AppDomains.

    There is a vast range of info about working with AppDomains linked from here (see the table).

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

Sidebar

Related Questions

I have implemented a small Windows Service which runs every 9 minutes and writes
I have a windows service which runs continuously and creates some threads to do
I have a simple .NET application which runs as Windows Service. Say it has
I have a windows service which runs based on the machine name or ip
I have a program that runs as a Windows Service which is processing files
I have a Windows Service written in Delphi which runs a number of programs.
I have a Windows Service program running in Release mode that runs 24/7 which
I have a Windows Service which is basically accessing a mailbox and reading the
I have a windows service which fetches data from various datasources and build a
I have two windows application, one is a windows service which create EventWaitHandle and

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.