public static TransactionId Generate() { var transactionId = new TransactionId() { Value = new byte[Length], }; (new Random(Environment.TickCount)).NextBytes(transactionId.Value); return transactionId; }
public static TransactionId Generate() { var transactionId = new TransactionId() { Value = new byte[Length], }; (new Random(Environment.TickCount)).NextBytes(transactionId.Value); return(transactionId); }
public static TransactionId SafeGetTransactionId(byte[] bytes, int startIndex, int length) { TransactionId id = null; try { if (length >= HeaderLength) { id = new TransactionId(bytes, startIndex + TransactionId.DefaultStartIndex); } } catch { } return(id); }
public void Parse(byte[] bytes, ref int startIndex, TransactionId transactionId) { base.Parse(bytes, ref startIndex, transactionId.Value); }
public void GetBytes(byte[] bytes, ref int startIndex, TransactionId transactionId) { base.GetBytes(bytes, ref startIndex, transactionId.Value); }
public static TransactionId SafeGetTransactionId(byte[] bytes, int startIndex, int length) { TransactionId id = null; try { if (length >= HeaderLength) id = new TransactionId(bytes, startIndex + TransactionId.DefaultStartIndex); } catch { } return id; }