34 lines
521 B
C#
34 lines
521 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
|
|
namespace TBF.Rig.Operations
|
|
{
|
|
/// <summary>
|
|
/// Operation usefull for debugging
|
|
/// </summary>
|
|
class ReturnGivenEventOp : IOperation
|
|
{
|
|
/// Set by the constructor
|
|
readonly Event givenEvent;
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public ReturnGivenEventOp(Event givenEvent)
|
|
{
|
|
this.givenEvent = givenEvent;
|
|
}
|
|
|
|
public void Start() { }
|
|
|
|
public Event Run()
|
|
{
|
|
return givenEvent;
|
|
}
|
|
|
|
public void Stop() { }
|
|
}
|
|
}
|