DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Static Public Member Functions | Package Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Diagnostics.LogEntry Class Reference
Inheritance diagram for Deveel.Data.Diagnostics.LogEntry:

Public Member Functions

object GetValue (string key)
 
IEnumerator< KeyValuePair< string, object > > GetEnumerator ()
 

Static Public Member Functions

static LogEntry FromEvent (IEvent @event)
 

Package Functions

 LogEntry (IDictionary< string, object > metadata)
 

Properties

IEnumerable< string > Keys [get]
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

readonly Dictionary< string, object > data
 

Detailed Description

Definition at line 22 of file LogEntry.cs.

Constructor & Destructor Documentation

Deveel.Data.Diagnostics.LogEntry.LogEntry ( IDictionary< string, object >  metadata)
inlinepackage

Definition at line 25 of file LogEntry.cs.

25  {
26  data = new Dictionary<string, object>(metadata);
27  }
readonly Dictionary< string, object > data
Definition: LogEntry.cs:23

Member Function Documentation

static LogEntry Deveel.Data.Diagnostics.LogEntry.FromEvent ( IEvent event)
inlinestatic

Definition at line 49 of file LogEntry.cs.

49  {
50  var data = new Dictionary<string, object>();
51  if (@event.EventSource != null) {
52  var source = @event.EventSource;
53  while (source != null) {
54  var sourceData = source.Metadata;
55  foreach (var pair in sourceData) {
56  data[pair.Key] = pair.Value;
57  }
58 
59  source = source.ParentSource;
60  }
61  }
62 
63  foreach (var pair in @event.EventData) {
64  data[pair.Key] = pair.Value;
65  }
66 
67  return new LogEntry(data);
68  }
LogEntry(IDictionary< string, object > metadata)
Definition: LogEntry.cs:25
readonly Dictionary< string, object > data
Definition: LogEntry.cs:23
IEnumerator<KeyValuePair<string, object> > Deveel.Data.Diagnostics.LogEntry.GetEnumerator ( )
inline

Definition at line 41 of file LogEntry.cs.

41  {
42  return data.GetEnumerator();
43  }
readonly Dictionary< string, object > data
Definition: LogEntry.cs:23
IEnumerator IEnumerable. Deveel.Data.Diagnostics.LogEntry.GetEnumerator ( )
inlineprivate

Definition at line 45 of file LogEntry.cs.

45  {
46  return GetEnumerator();
47  }
IEnumerator< KeyValuePair< string, object > > GetEnumerator()
Definition: LogEntry.cs:41
object Deveel.Data.Diagnostics.LogEntry.GetValue ( string  key)
inline

Definition at line 33 of file LogEntry.cs.

33  {
34  object value;
35  if (!data.TryGetValue(key, out value))
36  return null;
37 
38  return value;
39  }
readonly Dictionary< string, object > data
Definition: LogEntry.cs:23

Member Data Documentation

readonly Dictionary<string, object> Deveel.Data.Diagnostics.LogEntry.data
private

Definition at line 23 of file LogEntry.cs.

Property Documentation

IEnumerable<string> Deveel.Data.Diagnostics.LogEntry.Keys
get

Definition at line 29 of file LogEntry.cs.


The documentation for this class was generated from the following file: