Skip to content

Commit

Permalink
Make changes to remove VS2015 sematic in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
chinadragon0515 committed Aug 9, 2016
1 parent 997269d commit 23fd32e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ public void StopTimer()
private Timer InitTimer()
{
DataStoreTimer = new Timer(_dataStoreLifeTime);
DataStoreTimer.Elapsed += (sender, args) => { _timerTimeoutHandler?.Invoke(this, args); };
DataStoreTimer.Elapsed += (sender, args) =>
{
if (_timerTimeoutHandler != null)
{
_timerTimeoutHandler.Invoke(this, args);
}
};
DataStoreTimer.Start();
return DataStoreTimer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ public static class LibraryUtils
static public string GetSessionId()
{
var session = System.Web.HttpContext.Current.Session;
return session?.SessionID;
if (session != null)
{
return session.SessionID;
}

return null;
}
}
}

0 comments on commit 23fd32e

Please sign in to comment.