using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edge.Core.Processor.Dispatcher
{
public class OnProcessorsLifeCycleChangedEventArg
{
///
///
///
///
///
/// any descriptive info for help understand why this operation happened.
public OnProcessorsLifeCycleChangedEventArg(
IEnumerable operationResults, string lifeCycleName, string reason)
{
this.OperationResults = operationResults;// operationResults.Select(r => ProcessorLifeCycleOperationResultDto.From(r));
this.LifeCycleName = lifeCycleName;
this.Reason = reason;
this.TimeStamp = DateTime.Now;
}
public DateTime TimeStamp { get; set; }
public string LifeCycleName { get; private set; }
public string Reason { get; private set; }
///
///
public IEnumerable OperationResults { get; private set; }
}
public class OnProcessorsInstantiatedEventArg : System.EventArgs
{
public OnProcessorsInstantiatedEventArg(
IEnumerable operationResults)
{
this.OperationResults = operationResults;
}
public IEnumerable OperationResults { get; private set; }
}
}