Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a scheduled task and module development option considerationsCreating a scheduled task and module development option considerations
Previous
 
Next
New Post
6/5/2009 12:09 PM
 

Hi,

I began developing my custom module using the app_code or dynamic compilation approach - i.e. my module was developed by placing user controls (and other content files in the DesktopModules/[ModuleName] folder, and by placing the code files (Controller & Info classes and DataProvider classes) in the App_Code/[ModuleName] folder.

I now have a requirement to develop a scheduled task to send out emails that my module is going to generate. I wish to use the DNN Scheduling Provider to achieve this but as far I'm aware, scheduled tasks need to be compiled into a DLL file. I was wondering what the best approach would be?

I developed a simple HelloWorld scheduled task inside its own Class Library project that I compiled into a DLL and to which I added a reference to the DotNetNuke.dll. The problem with this is that whilst I could access all the methods inside DotNetNuke I couldn't reference anything inside my custom module (e.g. any of the Info, DataProvider, SqlDataProvider classes that I may have use for). I'm keen to avoid duplicating stuff so should I simply rework my custom module so that the whole module is compiled (e.g. using the DotNetNuke Compiled Module template included with the Starter Kit) - then I could simply have the scheduled task as just another class in my module from which I could reference all the other classes in my module? It sounds like this may be the best approach as isn't this the way the forum module is developed (i.e. you have the GUI stuff and the scheduler all wrapped up in the one DLL)?

Any advice/tips would be gratefully received. I'm a bit tentative about starting off on a particular track only to discover that I would have been better of doing it a different way if only I knew a bit more starting off.

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Creating a scheduled task and module development option considerationsCreating a scheduled task and module development option considerations


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out