Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Looking for a dll type solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 30 Nov 2006 17:03 GMT
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
David Browne - 30 Nov 2006 17:24 GMT
> Greetings,
>
[quoted text clipped - 16 lines]
>
> 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/issues/03/10/Plug-Ins/default.aspx

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

David
Jason - 30 Nov 2006 18:31 GMT
>> Greetings,
>>
[quoted text clipped - 39 lines]
>
> David

Awesome Thanks !!!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.