Mercurial > pub > ImplabNet
annotate Implab/Components/StateChangeEventArgs.cs @ 262:f1696cdc3d7a v3 v3.0.8
Added IInitializable.Initialize() overload
Added IRunnable.Start(), IRunnable.Start() overloads
Fixed cancellation of the current operation when Stop() is called
More tests
author | cin |
---|---|
date | Mon, 16 Apr 2018 02:12:39 +0300 |
parents | 558f34b2fb50 |
children |
rev | line source |
---|---|
205
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
1 using System; |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
2 |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
3 namespace Implab.Components |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
4 { |
207
558f34b2fb50
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()'
cin
parents:
205
diff
changeset
|
5 public class StateChangeEventArgs : EventArgs { |
205
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
6 /// <summary> |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
7 /// The error information if any |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
8 /// </summary> |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
9 public Exception LastError { get; set; } |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
10 |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
11 /// <summary> |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
12 /// The state of the service corresponding to this event |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
13 /// </summary> |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
14 public ExecutionState State { get; set; } |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
15 } |
8200ab154c8a
Added ResetState to RunnableComponent to reset in case of failure
cin
parents:
diff
changeset
|
16 } |