Esempio n. 1
0
 internal DumpsterStatisticsEntry(string server, long ticksOldestItem, long queueSize, int numberOfItems)
 {
     this.m_server        = server;
     this.m_queueSize     = queueSize;
     this.m_numberOfItems = numberOfItems;
     this.m_oldestItem    = DumpsterStatisticsEntry.ToNullableLocalDateTime(new DateTime(ticksOldestItem));
 }
Esempio n. 2
0
 internal static DateTime?ToNullableLocalDateTime(DateTime dateTime)
 {
     if (DumpsterStatisticsEntry.IsValidDateTime(dateTime))
     {
         return(new DateTime?(dateTime.ToLocalTime()));
     }
     return(null);
 }