Dynamicweb 8 Documentation
Standard.Admin.PipelineStartArgs Class
Members  Example 

Provides information about the page from which the pipeline was launched
Syntax
'Declaration
 
Public Class Standard.Admin.PipelineStartArgs 
   Inherits Dynamicweb.Extensibility.NotificationArgs
public class Standard.Admin.PipelineStartArgs : Dynamicweb.Extensibility.NotificationArgs 
Remarks
Arguments passed to Dynamicweb.Notifications.Standard.Admin.PipelineStarted notification
Example
Overriding the admin pipeline started notification in DynamicwebOverriding the admin pipeline started notification in Dynamicweb
namespace Dynamicweb.Examples.CSharp.Notifications.Standard
{
    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Standard.Admin.PipelineStarted)]
    public class PipelineStartedObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null)
                return;

            if (!(args is Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs))
                return;

            Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs item = (Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs)args;

            //TODO: Add code here

        }
    }
}
Namespace Notifications.Standard
    <Extensibility.Subscribe(Global.Dynamicweb.Notifications.Standard.Admin.PipelineStarted)> _
    Public Class PipelineStartedObserver
        Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber

        Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs)
            If args Is Nothing Then
                Return
            End If

            If Not (TypeOf args Is Global.Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs) Then
                Return
            End If

            Dim item As Global.Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs = DirectCast(args, Global.Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs)
            'TODO: Add code here

        End Sub
    End Class
End Namespace
Inheritance Hierarchy

System.Object
   Dynamicweb.Extensibility.NotificationArgs
      Dynamicweb.Notifications.Standard.Admin.PipelineStartArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Standard.Admin.PipelineStartArgs Members
Dynamicweb.Notifications Namespace

Send Feedback