示例#1
0
 public static MongoId GenerateNewId()
 {
     return(GenerateNewId(MongoIdTimer.GetTimestampFromDateTime(DateTime.UtcNow)));
 }
示例#2
0
 public static MongoId GenerateNewId(DateTime timestamp)
 {
     return(GenerateNewId(MongoIdTimer.GetTimestampFromDateTime(timestamp)));
 }
示例#3
0
 public MongoId(DateTime timestamp, int machine, short pid, int increment)
     : this(MongoIdTimer.GetTimestampFromDateTime(timestamp), machine, pid, increment)
 {
 }