NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Objects.ReadingBulk Class Reference
Inheritance diagram for Ntp.Analyzer.Objects.ReadingBulk:
Collaboration diagram for Ntp.Analyzer.Objects.ReadingBulk:

Public Member Functions

 ReadingBulk (string name, DateTimeKind kind)
 
- Public Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
override bool Equals (object obj)
 
override int GetHashCode ()
 
void SetId (int id)
 Sets the identifier after the object have been stored in persistent storage. More...
 
override string ToString ()
 Returns a string that represents the current PersistentObject. More...
 

Properties

string Name [get]
 
DateTime Time [get]
 
- Properties inherited from Ntp.Analyzer.Objects.PersistentObject
int Id [get, private set]
 Gets the identifier. More...
 
bool NewObject [get, protected set]
 Gets a value indicating whether this PersistentObject is a new object which does not yet exists in the peristing storage (database etc). More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Objects.PersistentObject
 PersistentObject (int id)
 Initializes a new instance of the PersistentObject class. More...
 
 PersistentObject ()
 Initializes a new instance of the PersistentObject class. More...
 

Detailed Description

Definition at line 26 of file ReadingBulk.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Objects.ReadingBulk.ReadingBulk ( string  name,
DateTimeKind  kind 
)
inline

Definition at line 28 of file ReadingBulk.cs.

29  {
30  Name = name;
31 
32  switch (kind)
33  {
34  case DateTimeKind.Local:
35  Time = DateTime.Now;
36  break;
37  case DateTimeKind.Utc:
38  Time = DateTime.UtcNow;
39  break;
40  case DateTimeKind.Unspecified:
41  Time = DateTime.UtcNow;
42  break;
43  default:
44  Time = DateTime.UtcNow;
45  break;
46  }
47  }

Property Documentation

string Ntp.Analyzer.Objects.ReadingBulk.Name
get

Definition at line 49 of file ReadingBulk.cs.

Referenced by Ntp.Analyzer.Data.Sql.ReadingBulkMapper.Insert().

DateTime Ntp.Analyzer.Objects.ReadingBulk.Time
get

Definition at line 51 of file ReadingBulk.cs.

Referenced by Ntp.Analyzer.Objects.Reading.Reading().


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