473,659 Members | 2,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for a dll type solution

Greetings,

When my data is updated in my sql server database there are a number of jobs
that my current process performs that analyzes the new data. This only
happens once a day very early in the am.

When I want to add a new job I have to add new code to the current process.

You probably know where I'm going with this but what I would like to happen
would be to store the "jobs" info in a table on the database and have my
process read that table to determine what jobs to perform when and where the
dll is that contains the code to execute the job.

I think I'm looking at a strategy type pattern here but I'm not sure how to
get around the references I would need to add to the project. Is this a job
for reflection? I've only read a little about it but I think it might be
able to help.

Any thoughts?

thanks
Nov 30 '06 #1
2 1109


"Jason" <J@J.netwrote in message
news:ur******** ******@TK2MSFTN GP06.phx.gbl...
Greetings,

When my data is updated in my sql server database there are a number of
jobs that my current process performs that analyzes the new data. This
only happens once a day very early in the am.

When I want to add a new job I have to add new code to the current
process.

You probably know where I'm going with this but what I would like to
happen would be to store the "jobs" info in a table on the database and
have my process read that table to determine what jobs to perform when and
where the dll is that contains the code to execute the job.

I think I'm looking at a strategy type pattern here but I'm not sure how
to get around the references I would need to add to the project. Is this a
job for reflection? I've only read a little about it but I think it might
be able to help.

Any thoughts?
Basic steps:

1)Define an interface that each of your plugins will implement.

2) Code your shell program to load a list of types given the assembly name
and type name.

3) For each loaded type,
-Create an instance of the type through reflection.
-Cast the instance to the interface type
-Operate the plugin through the interface

See

Let Users Add Functionality to Your .NET Applications with Macros and
Plug-Ins
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Creating an Extensible Windows Service - Part 2: Plug-In Development
http://www.15seconds.com/issue/021015.htm

David

Nov 30 '06 #2


"David Browne" <davidbaxterbro wne no potted me**@hotmail.co mwrote in
message news:u9******** ******@TK2MSFTN GP03.phx.gbl...
>

"Jason" <J@J.netwrote in message
news:ur******** ******@TK2MSFTN GP06.phx.gbl...
>Greetings,

When my data is updated in my sql server database there are a number of
jobs that my current process performs that analyzes the new data. This
only happens once a day very early in the am.

When I want to add a new job I have to add new code to the current
process.

You probably know where I'm going with this but what I would like to
happen would be to store the "jobs" info in a table on the database and
have my process read that table to determine what jobs to perform when
and where the dll is that contains the code to execute the job.

I think I'm looking at a strategy type pattern here but I'm not sure how
to get around the references I would need to add to the project. Is this
a job for reflection? I've only read a little about it but I think it
might be able to help.

Any thoughts?

Basic steps:

1)Define an interface that each of your plugins will implement.

2) Code your shell program to load a list of types given the assembly name
and type name.

3) For each loaded type,
-Create an instance of the type through reflection.
-Cast the instance to the interface type
-Operate the plugin through the interface

See

Let Users Add Functionality to Your .NET Applications with Macros and
Plug-Ins
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Creating an Extensible Windows Service - Part 2: Plug-In Development
http://www.15seconds.com/issue/021015.htm

David


Awesome Thanks !!!!
Nov 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2297
by: Ed Cox | last post by:
Hi, first time poster to this group looking for a little help. Knowing that there are hundreds of php applications and solutions out there, and I don't want to re invent the wheel, I am looking for something in php that will provide a web based solution for me to add/edit/delete records in a MySQL database/table that must include one BLOB (JPEG) image field. It's a PEOPLE application that has details on the people that includes a...
22
2274
by: Martin MOKREJ© | last post by:
Hi, I'm looking for some easy way to do something like include in c or PHP. Imagine I would like to have: cat somefile.py a = 222 b = 111 c = 9
3
6819
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to figure out, if there is a way of using polymorphic way (if that is a word) of doing this particular property. A sample of my code is as follows: DynamicControls.ButtonControl(this,btnSearchByName, new Point(5, 75), new Size(95, 20),...
1
2576
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am looking for a robust solution for a major application. Almost every developer seems to come up with a completely different solution. While many of them are not bad, I really want a very good one. My database is SQL Server 2000 and I am using Visual...
1
1239
by: Bijoy Naick | last post by:
I've made multiple posts re different aspects of dynamically adding web and user controls.. First off, thx for all the responses.. I think I've figured it out. I am looking for some feedback on how I am implementing certain functionlity.. Details follow.. Scenario ======
11
3308
by: admin | last post by:
Hi all, First time poster here... I'm a webmaster and I'd like to add a simple script to my website which will allow users to fill in a brief multiple choice questionaire, and then provide a 'thoughful' suggestion based on their answers. In terms of the logic involved with the actual script: I've mulled it over and thoroughly broken my brain, trying to devise a complicated 'scoring system' (with different answers giving different...
3
1956
by: richk | last post by:
I am looking for a way to determine the screen type when I am checking out a laptop that has no HDD installed. I am looking for something I can compile to run under a DOS or windows 98 command prompt when I boot from a CD to dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can compile C++ under visual studio 6. Thanks
20
6042
by: ram.rachum | last post by:
Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea?
4
1975
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am familiar with unit testing but have to implement in a large solution of 100 projects - my concern is Adding Unit test will bloat the solution - taking more time to get all code from SVN and slow compile time for developers -Is there a way to build solution in debug without building all the unit tests -Is there a goos way to oragnize the unit test so there are not alot of projects
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.