/// <summary> /// Called when the current run segment is about to be executed. /// </summary> /// <param name="args">The event data.</param> public override void OnSegmentExecuting(ISegmentExecutingArgs args) { Console.WriteLine(); Console.WriteLine( Resources.SegmentExecuting, this.Context.SegmentIndex, this.Context.SegmentCount); Console.Write(" {0}: ", Resources.Type); this.PrintLine(this.GetLabel(this.Context.SegmentType), ConsoleColor.Cyan); if (this.Context.SourceSystem != null) { Console.Write(" {0}: ", Resources.SourceSystem); this.PrintLine(this.Context.SourceSystem.Name, ConsoleColor.Cyan); } Console.Write(" {0}: ", Resources.DestinationSystem); this.PrintLine(this.Context.DestinationSystem.Name, ConsoleColor.Cyan); Console.Write(" {0}: ", Resources.EntityType); this.PrintLine(this.Context.EntityType.Name, ConsoleColor.Cyan); Console.WriteLine(); }
/// <summary> /// Called when a run segment is about to be executed. /// </summary> /// <param name="args">The event data.</param> void IEventReceiver <ISegmentExecutingArgs> .Occurred(ISegmentExecutingArgs args) { this.OnSegmentExecuting(args); }
/// <summary> /// Called when a run segment is about to be executed. /// </summary> /// <param name="args">The event data.</param> public virtual void OnSegmentExecuting(ISegmentExecutingArgs args) { }
/// <summary> /// To be called when a run segment is about to be executed. /// </summary> /// <param name="args">The event data.</param> public void SegmentExecuting(ISegmentExecutingArgs args) { this.Dispatch(args); }