Skip to content

Instantly share code, notes, and snippets.

@philipstears
Created November 3, 2014 07:54
Show Gist options
  • Save philipstears/538f6934d378c2cff6a9 to your computer and use it in GitHub Desktop.
Save philipstears/538f6934d378c2cff6a9 to your computer and use it in GitHub Desktop.
<Task("Name", "embedded://DriveWorks.MyImagePlain16.png", "Category")> _
Public Class DoSomethingWithOpenSpecification
Inherits Task
Private Sub New()
End Sub
''' <summary>
''' Overridden to indicate that a running specification is required by the task to execute.
''' </summary>
''' <param name="ctx">The specification context for the active specification.</param>
''' <returns>True</returns>
''' <remarks></remarks>
Protected Overrides Function IsRunningRequired(ByVal ctx As SpecificationContext) As Boolean
Return True
End Function
Protected Overrides Sub Execute(ByVal ctx As SpecificationContext)
' Do work that requires the specification context to be open
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment