37 lines
718 B
C#
37 lines
718 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using log4net;
|
|
|
|
namespace TBF.BenchControl.Operations
|
|
{
|
|
/// <summary>
|
|
/// Operation usefull for debugging
|
|
/// </summary>
|
|
class ReturnGivenEventOp : IOperation
|
|
{
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(ReturnGivenEventOp));
|
|
public override string ToString() { return string.Format("ReturnGivenEventOp({0})", givenEvent); }
|
|
|
|
/// 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() {}
|
|
}
|
|
}
|