Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions MAT.SQLRace.HelloData/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private static void Main(string[] args)
//LoadLiveFunction();
//WholeSessionsCompareMode();
//TestMaxAndMinSampleIntervals();
//CreateSessionWithTimeZoneValue();

Console.WriteLine("Press ENTER key to close.");
Console.ReadLine();
Expand Down Expand Up @@ -234,6 +235,35 @@ private static void CreateSessionAndAddData()
clientSession.Close();
}

private static void CreateSessionWithTimeZoneValue()
{
ConnectionString = $@"DbEngine=SQLite;Data Source=c:\ssn2\test01.ssn2;";

var sessionManager = SessionManager.CreateSessionManager();

var clientSession1 = sessionManager.CreateSessionWithTeamId(
ConnectionString,
SessionKey.NewKey(),
"clientSession1",
DateTime.UtcNow,
45,
"Session",
"UTC+00:00");

var clientSession2 = sessionManager.CreateSession(
ConnectionString,
SessionKey.NewKey(),
"clientSession2",
DateTime.UtcNow,
"Session");

var session1 = clientSession1.Session;
var session2 = clientSession2.Session;

Console.WriteLine($"Session one created with timezone: {session1.TimeZone}");
Console.WriteLine($"Session two created with timezone: {session2.TimeZone}");
}

private static void TestMaxAndMinSampleIntervals()
{
ConnectionString = $@"DbEngine=SQLite;Data Source=c:\ssn2\test01.ssn2;";
Expand Down
Loading