Skip to content

Commit

Permalink
Renamed GetSession to LookupOrCreateDynamicSession
Browse files Browse the repository at this point in the history
  • Loading branch information
pvkv1799 committed Aug 12, 2020
1 parent 50005cb commit 83f1b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion QuickFIXn/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public static Session LookupSession(SessionID sessionID)
/// In the latter case, creates a new session using the found wildcard session as a template.
/// </summary>
/// <returns>the Session if found or created, otherwise returns null</returns>
public static Session GetSession(SessionID sessionID)
public static Session LookupOrCreateDynamicSession(SessionID sessionID)
{
Session result = LookupSession(sessionID);
if (null != result) return result;
Expand Down
2 changes: 1 addition & 1 deletion QuickFIXn/SocketReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected void OnMessageFoundInternal(string msg)
{
if (null == qfSession_)
{
qfSession_ = Session.GetSession(Message.GetReverseSessionID(msg));
qfSession_ = Session.LookupOrCreateDynamicSession(Message.GetReverseSessionID(msg));
if (null == qfSession_)
{
this.Log("ERROR: Disconnecting; received message for unknown session: " + msg);
Expand Down

0 comments on commit 83f1b83

Please sign in to comment.