public long TransactionIDGet([PexAssumeUnderTest] ProfilerEvent target) { long result = target.TransactionID; return(result); // TODO: add assertions to method ProfilerEventTest.TransactionIDGet(ProfilerEvent) }
public int ClientProcessIDGet([PexAssumeUnderTest] ProfilerEvent target) { int result = target.ClientProcessID; return(result); // TODO: add assertions to method ProfilerEventTest.ClientProcessIDGet(ProfilerEvent) }
public DateTime StartTimeGet([PexAssumeUnderTest] ProfilerEvent target) { DateTime result = target.StartTime; return(result); // TODO: add assertions to method ProfilerEventTest.StartTimeGet(ProfilerEvent) }
public string SessionLoginNameGet([PexAssumeUnderTest] ProfilerEvent target) { string result = target.SessionLoginName; return(result); // TODO: add assertions to method ProfilerEventTest.SessionLoginNameGet(ProfilerEvent) }
public int SourceDatabaseIDGet([PexAssumeUnderTest] ProfilerEvent target) { int result = target.SourceDatabaseID; return(result); // TODO: add assertions to method ProfilerEventTest.SourceDatabaseIDGet(ProfilerEvent) }
public long BigintData2Get([PexAssumeUnderTest] ProfilerEvent target) { long result = target.BigintData2; return(result); // TODO: add assertions to method ProfilerEventTest.BigintData2Get(ProfilerEvent) }
public int TypeGet([PexAssumeUnderTest] ProfilerEvent target) { int result = target.Type; return(result); // TODO: add assertions to method ProfilerEventTest.TypeGet(ProfilerEvent) }
public Guid GUIDGet([PexAssumeUnderTest] ProfilerEvent target) { Guid result = target.GUID; return(result); // TODO: add assertions to method ProfilerEventTest.GUIDGet(ProfilerEvent) }
public string LinkedServerNameGet([PexAssumeUnderTest] ProfilerEvent target) { string result = target.LinkedServerName; return(result); // TODO: add assertions to method ProfilerEventTest.LinkedServerNameGet(ProfilerEvent) }
public long XactSequenceGet([PexAssumeUnderTest] ProfilerEvent target) { long result = target.XactSequence; return(result); // TODO: add assertions to method ProfilerEventTest.XactSequenceGet(ProfilerEvent) }
public long WritesGet([PexAssumeUnderTest] ProfilerEvent target) { long result = target.Writes; return(result); // TODO: add assertions to method ProfilerEventTest.WritesGet(ProfilerEvent) }
public bool ColumnIsSet([PexAssumeUnderTest] ProfilerEvent target, int columnId) { bool result = target.ColumnIsSet(columnId); return(result); // TODO: add assertions to method ProfilerEventTest.ColumnIsSet(ProfilerEvent, Int32) }
public int ColumnPermissionsGet([PexAssumeUnderTest] ProfilerEvent target) { int result = target.ColumnPermissions; return(result); // TODO: add assertions to method ProfilerEventTest.ColumnPermissionsGet(ProfilerEvent) }
public ProfilerEvent Constructor() { ProfilerEvent target = new ProfilerEvent(); return(target); // TODO: add assertions to method ProfilerEventTest.Constructor() }
public string TextDataGet([PexAssumeUnderTest] ProfilerEvent target) { string result = target.TextData; return(result); // TODO: add assertions to method ProfilerEventTest.TextDataGet(ProfilerEvent) }
public ProfilerEvent Next([PexAssumeUnderTest] RawTraceReader target) { ProfilerEvent result = target.Next(); return(result); // TODO: add assertions to method RawTraceReaderTest.Next(RawTraceReader) }
/// <summary> /// Next instance. /// </summary> /// <returns>the next instance</returns> public ProfilerEvent Next() { if (!this.TraceIsActive) { return(null); } int columnid = (int)this.reader[0]; ////skip to begin of new event while (columnid != 65526 && this.Read() && this.TraceIsActive) { columnid = (int)this.reader[0]; } ////start of new event if (columnid != 65526) { return(null); } if (!this.TraceIsActive) { return(null); } ////get potential event class this.reader.GetBytes(2, 0, this.b2, 0, 2); int eventClass = ToInt16(this.b2); ////we got new event if (eventClass >= 0 && eventClass < 255) { ProfilerEvent evt = new ProfilerEvent(); evt.EventObjects[27] = eventClass; evt.ColumnMask |= 1 << 27; while (this.Read()) { columnid = (int)this.reader[0]; if (columnid > 64) { return(evt); } this.EventDelegates[columnid](evt, columnid); } } this.Read(); return(null); }
/// <summary> /// Sets the date time column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> private void SetDateTimeColumn(ProfilerEvent evt, int columnid) { ////2 byte - year ////2 byte - month ////2 byte - ??? ////2 byte - day ////2 byte - hour ////2 byte - min ////2 byte - sec ////2 byte - msec this.reader.GetBytes(2, 0, this.b16, 0, 16); int year = this.b16[0] | this.b16[1] << 8; int month = this.b16[2] | this.b16[3] << 8; int day = this.b16[6] | this.b16[7] << 8; int hour = this.b16[8] | this.b16[9] << 8; int min = this.b16[10] | this.b16[11] << 8; int sec = this.b16[12] | this.b16[13] << 8; int msec = this.b16[14] | this.b16[15] << 8; evt.EventObjects[columnid] = new DateTime(year, month, day, hour, min, sec, msec); evt.ColumnMask |= (ulong)1 << columnid; }
public byte[] SqlHandleGet([PexAssumeUnderTest] ProfilerEvent target) { byte[] result = target.SqlHandle; return(result); // TODO: add assertions to method ProfilerEventTest.SqlHandleGet(ProfilerEvent) }
/// <summary> /// Sets the string column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> private void SetStringColumn(ProfilerEvent evt, int columnid) { evt.EventObjects[columnid] = Encoding.Unicode.GetString((byte[])this.reader[2]); evt.ColumnMask |= 1UL << columnid; }
/// <summary> /// Sets the byte column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> private void SetByteColumn(ProfilerEvent evt, int columnid) { byte[] b = new byte[(int)this.reader[1]]; evt.EventObjects[columnid] = b; evt.ColumnMask |= 1UL << columnid; }
/// <summary> /// Sets the integer column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> private void SetIntColumn(ProfilerEvent evt, int columnid) { this.reader.GetBytes(2, 0, this.b4, 0, 4); evt.EventObjects[columnid] = ToInt32(this.b4); evt.ColumnMask |= 1UL << columnid; }
/// <summary> /// Sets the long column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> private void SetLongColumn(ProfilerEvent evt, int columnid) { this.reader.GetBytes(2, 0, this.b8, 0, 8); evt.EventObjects[columnid] = ToInt64(this.b8); evt.ColumnMask |= 1UL << columnid; }
public byte[] BinaryDataGet([PexAssumeUnderTest] ProfilerEvent target) { byte[] result = target.BinaryData; return(result); // TODO: add assertions to method ProfilerEventTest.BinaryDataGet(ProfilerEvent) }
/// <summary> /// Sets the GUID column. /// </summary> /// <param name="evt">The event.</param> /// <param name="columnid">The column id.</param> /// <exception cref="System.NotImplementedException">an exception</exception> private static void SetGuidColumn(ProfilerEvent evt, int columnid) { throw new NotImplementedException(); }
public byte[] TargetLoginSidGet([PexAssumeUnderTest] ProfilerEvent target) { byte[] result = target.TargetLoginSid; return(result); // TODO: add assertions to method ProfilerEventTest.TargetLoginSidGet(ProfilerEvent) }