annotate Implab/Diagnostics/LogEventArgs.cs @ 187:dd4a3590f9c6 ref20160224

Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler Any unhandled OperationCanceledException will cause the promise cancelation
author cin
date Tue, 19 Apr 2016 17:35:20 +0300
parents 04d4c92d0f28
children d45bdf510514
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
92
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
1 using System;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
2
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
3 namespace Implab.Diagnostics {
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
4 public class LogEventArgs : EventArgs {
134
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
5 public string ChannelName {
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
6 get;
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
7 private set;
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
8 }
92
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
9 public int ThreadId {
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
10 get;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
11 private set;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
12 }
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
13 public LogicalOperation Operation {
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
14 get;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
15 private set;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
16 }
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
17 public int OperationTimeOffset {
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
18 get;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
19 private set;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
20 }
134
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
21 public LogEventArgs(string channelName, int threadId, LogicalOperation operation, int timeOffset) {
04d4c92d0f28 Improved logging
cin
parents: 92
diff changeset
22 ChannelName = channelName;
92
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
23 ThreadId = threadId;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
24 Operation = operation;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
25 OperationTimeOffset = timeOffset;
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
26 }
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
27 }
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
28 }
4c0e5ef99986 rewritten tracing
cin
parents:
diff changeset
29