Class CompositeSessionInfo
Composite Session Info
Inheritance
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class CompositeSessionInfo : Object, IEquatable<CompositeSessionInfo>, ICompositeSessionInfo, IDisposable
Constructors
CompositeSessionInfo()
Initializes a new instance of the CompositeSessionInfo class.
Declaration
public CompositeSessionInfo()
CompositeSessionInfo(IClientSession)
Initializes a new instance of the CompositeSessionInfo class.
Declaration
public CompositeSessionInfo(IClientSession underlyingSession)
Parameters
Type | Name | Description |
---|---|---|
IClientSession | underlyingSession |
CompositeSessionInfo(IClientSession, Boolean)
Initializes a new instance of the CompositeSessionInfo class.
Declaration
public CompositeSessionInfo(IClientSession underlyingSession, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
IClientSession | underlyingSession | |
System.Boolean | enabled |
Properties
Conversions
Conversions
Declaration
public ReadOnlyCollection<ConversionBase> Conversions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ConversionBase> |
Enabled
Wherther Enabled
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EndTime
Returns the end time of the session
Declaration
public long EndTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ErrorDefinitions
Error Definitions
Declaration
public ReadOnlyCollection<ErrorDefinition> ErrorDefinitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ErrorDefinition> |
EventDefinitions
Event Definitions
Declaration
public ReadOnlyCollection<EventDefinition> EventDefinitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<EventDefinition> |
Events
Events
Declaration
public EventCollection Events { get; }
Property Value
Type | Description |
---|---|
EventCollection |
Items
Session Items
Declaration
public SessionDataItemsCollection<SessionDataItem> Items { get; }
Property Value
Type | Description |
---|---|
SessionDataItemsCollection<SessionDataItem> |
Key
Session Key for under lying session
Declaration
public SessionKey Key { get; }
Property Value
Type | Description |
---|---|
SessionKey |
Laps
Laps
Declaration
public ILapCollection Laps { get; }
Property Value
Type | Description |
---|---|
ILapCollection |
Parameters
Parameters
Declaration
public ReadOnlyCollection<ParameterBase> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ParameterBase> |
SessionTimeRange
Gets the Session time range
Declaration
public TimeRange SessionTimeRange { get; }
Property Value
Type | Description |
---|---|
TimeRange |
StartTime
Returns the start time of the session
Declaration
public long StartTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
UnderlyingSession
Underlying Session
Declaration
public SessionBase UnderlyingSession { get; }
Property Value
Type | Description |
---|---|
SessionBase |
Methods
ContainsParameter(String)
Does the underlying Session contain the Parameter
Declaration
public bool ContainsParameter(string parameterIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterIdentifier |
Returns
Type | Description |
---|---|
System.Boolean |
CreateParameterDataAccess(String)
Create a PDA on the underlying Session
Declaration
public ParameterDataAccessBase CreateParameterDataAccess(string parameterIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterIdentifier |
Returns
Type | Description |
---|---|
ParameterDataAccessBase |
Dispose()
Dispose the Composite Session Info and it's underlying SessionBase object.
Declaration
public void Dispose()
Equals(CompositeSessionInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CompositeSessionInfo other)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionInfo | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
GetHashCode()
GetHashCode
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
GetLapFromStartTime(Int64)
Returns the lap in which this start time is present
Declaration
public Lap GetLapFromStartTime(long startTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime |
Returns
Type | Description |
---|---|
Lap |
LoadParameters(IEnumerable<String>)
Loads configuration for the parameterIdentifiers.
Declaration
public void LoadParameters(IEnumerable<string> parameterIdentifiers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | parameterIdentifiers | parameter identifiers required |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Operators
Equality(CompositeSessionInfo, CompositeSessionInfo)
Overloaded == Operator
Declaration
public static bool operator ==(CompositeSessionInfo left, CompositeSessionInfo right)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionInfo | left | |
CompositeSessionInfo | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(CompositeSessionInfo, CompositeSessionInfo)
Overloaded != Operator
Declaration
public static bool operator !=(CompositeSessionInfo left, CompositeSessionInfo right)
Parameters
Type | Name | Description |
---|---|---|
CompositeSessionInfo | left | |
CompositeSessionInfo | right |
Returns
Type | Description |
---|---|
System.Boolean |