This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Middleware : IWorkflowStepMiddleware | |
{ | |
public async Task<ExecutionResult> HandleAsync(IStepExecutionContext context, IStepBody body, WorkflowStepDelegate next) | |
{ | |
if (body is ContainerStepBody) return await next(); | |
Debug.WriteLine($"Start: {context.Step.Name ?? body.GetType().Name}"); | |
var result = await next(); | |
Debug.WriteLine($"End: {context.Step.Name ?? body.GetType().Name}"); | |
return result; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$name = psake | |
Save-Module -Name $name -Path . | |
Import-Module -Name .\$name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! special | |
*.foreground: #a7a7a7 | |
*.background: #1e1e1e | |
*.cursorColor: #a7a7a7 | |
! black | |
*.color0: #1e1e1e | |
*.color8: #5f5a60 | |
! red |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Documents; | |
using System.Windows.Media; | |
namespace de.dennhardt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SelectionRectangle : IEquatable<SelectionRectangle> | |
{ | |
private Rectangle rectangle; | |
public int Area | |
{ | |
get { return rectangle.Width * rectangle.Height; } | |
} | |
public int X | |
{ |