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.0Event-driven module?Event-driven module?
Previous
 
Next
New Post
3/19/2007 9:52 AM
 
I know that I can create a scheduled task to run in DNN.

Is it possible to create a task that runs when a specific event occurs? 

What I would like to do is to run a task whenever a user logs out.  If that's possible, could you point me in the right direction for some explanation how to do it, resources, etc.?

Thanks.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
3/19/2007 11:12 AM
 
Something like this would be nice, especially for module installation/uninstallation so we could do work besides drop database objects. There's a proposal to the core about events here: www.bring2mind.net .

But right now, no-- not without core modifications, anyway. In your specific case, you'd probably need to create a modified Login skin object and PurgeUsersOnline task to call your interface (possibly Session.End, too).
 
New Post
3/21/2007 3:55 AM
 

The core team is working on a feature like that... it's called EventQueue, and it only supports currently some basic events.

I know they did some changes to it for the 4.5 release, but probably haven't published the events you need.

 

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
3/21/2007 10:48 AM
 
I'm just speculating here because it's fun.

"EventQueue" doesn't sound like direct event subscription where the handlers are called immediately. It sounds like core events will be added to a table as they occur, and then a scheduled task will run every so often and call user code. While cool, that wouldn't quite cut it. We can already use our own scheduled tasks to poll for conditions we're interested in and run appropriate code, so that kind of event model wouldn't add much functionality. What's needed is a real, honest-to-god delegate subscription model, in my opinion.
 
New Post
3/21/2007 3:39 PM
 

Hmm... that would be nice, I agree :) God knows how many times I could have used them.

One more thing... this could potentially become also a performance problem... Some parts of the functionality are bulky in the current state.. if they would allow you to "hook" directly to an event... in the long run (more modules, more usages of functionality like that) it could get "troublesome" 

Well definetly something to think about, maybe someone on the core team will see this and do something about it?

 

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Event-driven module?Event-driven module?


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