C# Класс FluentCassandra.GuidGenerator

Used for generating UUID based on RFC 4122.
Показать файл Открыть проект

Открытые методы

Метод Описание
GenerateClockSequenceBytes ( ) : byte[]
GenerateNodeBytes ( ) : byte[]

Generates a random value for the node.

GenerateNodeBytes ( IPAddress ip ) : byte[]

Generates a node based on the first 6 bytes of an IP address.

GenerateNodeBytes ( PhysicalAddress mac ) : byte[]

Generates a node based on the bytes of the MAC address.

The machines MAC address can be retrieved from NetworkInterface.GetPhysicalAddress.

GenerateTimeBasedGuid ( ) : System.Guid
GenerateTimeBasedGuid ( System.DateTime dateTime ) : System.Guid
GenerateTimeBasedGuid ( System.DateTime dateTime, IPAddress ip ) : System.Guid
GenerateTimeBasedGuid ( System.DateTime dateTime, PhysicalAddress mac ) : System.Guid
GenerateTimeBasedGuid ( System.DateTime dateTime, byte clockSequence, byte node ) : System.Guid
GenerateTimeBasedGuid ( DateTimeOffset dateTime ) : System.Guid
GenerateTimeBasedGuid ( DateTimeOffset dateTime, IPAddress ip ) : System.Guid
GenerateTimeBasedGuid ( DateTimeOffset dateTime, PhysicalAddress mac ) : System.Guid
GenerateTimeBasedGuid ( DateTimeOffset dateTime, byte clockSequence, byte node ) : System.Guid
GetDateTime ( System.Guid guid ) : System.DateTime
GetDateTimeOffset ( System.Guid guid ) : DateTimeOffset
GetLocalDateTime ( System.Guid guid ) : System.DateTime
GetUtcDateTime ( System.Guid guid ) : System.DateTime
GetUuidVersion ( this guid ) : GuidVersion

Приватные методы

Метод Описание
GuidGenerator ( ) : System

Описание методов

GenerateClockSequenceBytes() публичный статический Метод

public static GenerateClockSequenceBytes ( ) : byte[]
Результат byte[]

GenerateNodeBytes() публичный статический Метод

Generates a random value for the node.
public static GenerateNodeBytes ( ) : byte[]
Результат byte[]

GenerateNodeBytes() публичный статический Метод

Generates a node based on the first 6 bytes of an IP address.
public static GenerateNodeBytes ( IPAddress ip ) : byte[]
ip IPAddress
Результат byte[]

GenerateNodeBytes() публичный статический Метод

Generates a node based on the bytes of the MAC address.
The machines MAC address can be retrieved from NetworkInterface.GetPhysicalAddress.
public static GenerateNodeBytes ( PhysicalAddress mac ) : byte[]
mac PhysicalAddress
Результат byte[]

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( ) : System.Guid
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( System.DateTime dateTime ) : System.Guid
dateTime System.DateTime
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( System.DateTime dateTime, IPAddress ip ) : System.Guid
dateTime System.DateTime
ip IPAddress
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( System.DateTime dateTime, PhysicalAddress mac ) : System.Guid
dateTime System.DateTime
mac PhysicalAddress
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( System.DateTime dateTime, byte clockSequence, byte node ) : System.Guid
dateTime System.DateTime
clockSequence byte
node byte
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( DateTimeOffset dateTime ) : System.Guid
dateTime DateTimeOffset
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( DateTimeOffset dateTime, IPAddress ip ) : System.Guid
dateTime DateTimeOffset
ip IPAddress
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( DateTimeOffset dateTime, PhysicalAddress mac ) : System.Guid
dateTime DateTimeOffset
mac PhysicalAddress
Результат System.Guid

GenerateTimeBasedGuid() публичный статический Метод

public static GenerateTimeBasedGuid ( DateTimeOffset dateTime, byte clockSequence, byte node ) : System.Guid
dateTime DateTimeOffset
clockSequence byte
node byte
Результат System.Guid

GetDateTime() публичный статический Метод

public static GetDateTime ( System.Guid guid ) : System.DateTime
guid System.Guid
Результат System.DateTime

GetDateTimeOffset() публичный статический Метод

public static GetDateTimeOffset ( System.Guid guid ) : DateTimeOffset
guid System.Guid
Результат DateTimeOffset

GetLocalDateTime() публичный статический Метод

public static GetLocalDateTime ( System.Guid guid ) : System.DateTime
guid System.Guid
Результат System.DateTime

GetUtcDateTime() публичный статический Метод

public static GetUtcDateTime ( System.Guid guid ) : System.DateTime
guid System.Guid
Результат System.DateTime

GetUuidVersion() публичный статический Метод

public static GetUuidVersion ( this guid ) : GuidVersion
guid this
Результат GuidVersion