EventQueueController provides business layer of event queue.

Namespace: DotNetNuke.Services.EventQueue
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public class EventQueueController
Visual Basic
Public Class EventQueueController

Remarks

Sometimes when your module running in DotNetNuke,and contains some operats didn't want to execute immediately. e.g: after your module installed into system, and some component you want to registed when the application restart, you can send an 'Application_Start' message, so your specific operation will be executed when application has been restart.

Examples

C# Copy imageCopy Code
var oAppStartMessage = new EventMessage
{
    Sender = sender,
    Priority = MessagePriority.High,
    ExpirationDate = DateTime.Now.AddYears(-1),
    SentDate = DateTime.Now,
    Body = "",
    ProcessorType = "DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke",
    ProcessorCommand = "UpdateSupportedFeatures"
};
oAppStartMessage.Attributes.Add("BusinessControllerClass", desktopModuleInfo.BusinessControllerClass);
oAppStartMessage.Attributes.Add("DesktopModuleId", desktopModuleInfo.DesktopModuleID.ToString());
EventQueueController.SendMessage(oAppStartMessage, "Application_Start");
if ((forceAppRestart))
{
    Config.Touch();
}

Inheritance Hierarchy

System..::..Object
  DotNetNuke.Services.EventQueue..::..EventQueueController

See Also