Mercurial > pub > ImplabNet
annotate Implab/Diagnostics/LogEventArgs.cs @ 207:558f34b2fb50 v2
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()'
added Safe.Dispose(IEnumerable)
added PromiseExtensions.CancellationPoint to add a cancellation point to the chain of promises
added IPromise<T> PromiseExtensions.Then<T>(this IPromise<T> that, Action<T> success) overloads
added PromiseExtensions.Error() overloads to handle a error or(and) a cancellation
author | cin |
---|---|
date | Wed, 09 Nov 2016 12:03:22 +0300 |
parents | d45bdf510514 |
children |
rev | line source |
---|---|
92 | 1 using System; |
2 | |
3 namespace Implab.Diagnostics { | |
4 public class LogEventArgs : EventArgs { | |
194 | 5 public object Channel { |
134 | 6 get; |
7 private set; | |
8 } | |
92 | 9 public int ThreadId { |
10 get; | |
11 private set; | |
12 } | |
13 public LogicalOperation Operation { | |
14 get; | |
15 private set; | |
16 } | |
17 public int OperationTimeOffset { | |
18 get; | |
19 private set; | |
20 } | |
194 | 21 public LogEventArgs(object channel, int threadId, LogicalOperation operation, int timeOffset) { |
22 Channel = channel; | |
92 | 23 ThreadId = threadId; |
24 Operation = operation; | |
25 OperationTimeOffset = timeOffset; | |
26 } | |
27 } | |
28 } | |
29 |