Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/LogEventArgs.cs @ 134:04d4c92d0f28 v2
Improved logging
| author | cin |
|---|---|
| date | Wed, 11 Feb 2015 02:12:15 +0300 |
| parents | 4c0e5ef99986 |
| children | d45bdf510514 |
comparison
equal
deleted
inserted
replaced
| 133:6c49d02a9a05 | 134:04d4c92d0f28 |
|---|---|
| 1 using System; | 1 using System; |
| 2 | 2 |
| 3 namespace Implab.Diagnostics { | 3 namespace Implab.Diagnostics { |
| 4 public class LogEventArgs : EventArgs { | 4 public class LogEventArgs : EventArgs { |
| 5 public string ChannelName { | |
| 6 get; | |
| 7 private set; | |
| 8 } | |
| 5 public int ThreadId { | 9 public int ThreadId { |
| 6 get; | 10 get; |
| 7 private set; | 11 private set; |
| 8 } | 12 } |
| 9 public LogicalOperation Operation { | 13 public LogicalOperation Operation { |
| 12 } | 16 } |
| 13 public int OperationTimeOffset { | 17 public int OperationTimeOffset { |
| 14 get; | 18 get; |
| 15 private set; | 19 private set; |
| 16 } | 20 } |
| 17 public LogEventArgs(int threadId, LogicalOperation operation, int timeOffset) { | 21 public LogEventArgs(string channelName, int threadId, LogicalOperation operation, int timeOffset) { |
| 22 ChannelName = channelName; | |
| 18 ThreadId = threadId; | 23 ThreadId = threadId; |
| 19 Operation = operation; | 24 Operation = operation; |
| 20 OperationTimeOffset = timeOffset; | 25 OperationTimeOffset = timeOffset; |
| 21 } | 26 } |
| 22 } | 27 } |
