How would this be designed in the .NET world?

Posted on 2011-03-05
Last Modified: 2012-06-27

Assume that on a Windows 2003 or 2008 server anywhere from 5 to 15 services all use the same list.  The list is just a hash table of keys and values that change once a week.  Every service has a read-only interface.  No service can change the content of the hash table.  We already have a dll that loads the hash table and this dll is referenced by every service.  So we have between 5 and 15 copies of the same hash table in memory.  Constantly being loaded and released as the services start and stop.

How can I load a single instance of this hash table into memory and expose it to any service or process that cares to read it?  We will be using .Net c# 4.0.  Could you point me towards a pattern or other reading?

Thanks for your opinion.
Question by:wilfordrocks
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

Jacco earned 500 total points
ID: 35045145
This is a nice approach. It stays away from SharedMemMaps :-)

Author Closing Comment

ID: 35108206
Thank you.  Excellent link.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question