473,414 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 1098


"Jason" <J@J.netwrote in message
news:ur**************@TK2MSFTNGP06.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" <davidbaxterbrowne no potted me**@hotmail.comwrote in
message news:u9**************@TK2MSFTNGP03.phx.gbl...
>

"Jason" <J@J.netwrote in message
news:ur**************@TK2MSFTNGP06.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
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...
22
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
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...
1
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...
1
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...
11
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...
3
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...
20
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.