view Implab/Components/StateChangeEventArgs.cs @ 205:8200ab154c8a v2

Added ResetState to RunnableComponent to reset in case of failure Added StateChanged event to IRunnable Renamed Promise.SUCCESS -> Promise.Success Added Promise.FromException Renamed Bundle -> PromiseAll in PromiseExtensions
author cin
date Tue, 25 Oct 2016 17:40:33 +0300
parents
children 558f34b2fb50
line wrap: on
line source

using System;

namespace Implab.Components
{
    public class StateChangeEventArgs {
        /// <summary>
        /// The error information if any
        /// </summary>
        public Exception LastError { get; set; }

        /// <summary>
        /// The state of the service corresponding to this event
        /// </summary>
        public ExecutionState State { get; set; }
    }
}