diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Implab/Components/StateChangeEventArgs.cs	Tue Oct 25 17:40:33 2016 +0300
@@ -0,0 +1,16 @@
+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; }
+    }
+}